{"action":"created","comment":{"url":"https://api.github.com/repos/Youshido/GraphQL/pulls/comments/86665272","pull_request_review_id":7314710,"id":86665272,"diff_hunk":"@@ -80,6 +81,24 @@ public function testValidFragmentTypeWithComposite()\n       $validator->assertValidFragmentForField($fragment, $fragmentReference, new NonNullType($userType));\n     }\n \n+    public function testValidFragmentTypeWithUnion()\n+    {\n+      $validator = new ResolveValidator(new ExecutionContext(new TestSchema()));\n+\n+      $unionType = new ObjectType([\n+        'name' => 'Mammals',\n+        'type'    => new TestUnionType(),\n+        'resolve' => function ($value, $args, ResolveInfo $info) {\n+          $testObject = new TestObjectType();\n+          return [$testObject->getData()];\n+        }\n+      ]);\n+\n+      $fragment          = new Fragment('name', 'TestObject', ['name']);","path":"Tests/Library/Validator/ResolveValidatorTest.php","position":25,"original_position":25,"commit_id":"b61aeb9ece5151daac2c088a17e9003fbf6a8ce8","original_commit_id":"b61aeb9ece5151daac2c088a17e9003fbf6a8ce8","user":{"login":"fubhy","id":1172528,"avatar_url":"https://avatars.githubusercontent.com/u/1172528?v=3","gravatar_id":"","url":"https://api.github.com/users/fubhy","html_url":"https://github.com/fubhy","followers_url":"https://api.github.com/users/fubhy/followers","following_url":"https://api.github.com/users/fubhy/following{/other_user}","gists_url":"https://api.github.com/users/fubhy/gists{/gist_id}","starred_url":"https://api.github.com/users/fubhy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fubhy/subscriptions","organizations_url":"https://api.github.com/users/fubhy/orgs","repos_url":"https://api.github.com/users/fubhy/repos","events_url":"https://api.github.com/users/fubhy/events{/privacy}","received_events_url":"https://api.github.com/users/fubhy/received_events","type":"User","site_admin":false},"body":"No need to pass a fields array (although it doesn't hurt I guess).","created_at":"2016-11-05T13:34:29Z","updated_at":"2016-11-05T13:34:29Z","html_url":"https://github.com/Youshido/GraphQL/pull/75#discussion_r86665272","pull_request_url":"https://api.github.com/repos/Youshido/GraphQL/pulls/75","_links":{"self":{"href":"https://api.github.com/repos/Youshido/GraphQL/pulls/comments/86665272"},"html":{"href":"https://github.com/Youshido/GraphQL/pull/75#discussion_r86665272"},"pull_request":{"href":"https://api.github.com/repos/Youshido/GraphQL/pulls/75"}}},"pull_request":{"url":"https://api.github.com/repos/Youshido/GraphQL/pulls/75","id":92453114,"html_url":"https://github.com/Youshido/GraphQL/pull/75","diff_url":"https://github.com/Youshido/GraphQL/pull/75.diff","patch_url":"https://github.com/Youshido/GraphQL/pull/75.patch","issue_url":"https://api.github.com/repos/Youshido/GraphQL/issues/75","number":75,"state":"open","locked":false,"title":"Test for #74: Support fragments on Unions and Interfaces","user":{"login":"danbruder","id":1824117,"avatar_url":"https://avatars.githubusercontent.com/u/1824117?v=3","gravatar_id":"","url":"https://api.github.com/users/danbruder","html_url":"https://github.com/danbruder","followers_url":"https://api.github.com/users/danbruder/followers","following_url":"https://api.github.com/users/danbruder/following{/other_user}","gists_url":"https://api.github.com/users/danbruder/gists{/gist_id}","starred_url":"https://api.github.com/users/danbruder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danbruder/subscriptions","organizations_url":"https://api.github.com/users/danbruder/orgs","repos_url":"https://api.github.com/users/danbruder/repos","events_url":"https://api.github.com/users/danbruder/events{/privacy}","received_events_url":"https://api.github.com/users/danbruder/received_events","type":"User","site_admin":false},"body":"Failing test case for https://github.com/Youshido/GraphQL/issues/74. ","created_at":"2016-11-05T13:14:27Z","updated_at":"2016-11-05T13:34:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"70ec4c5f300d41194d29a62448e63c65f13f5f6e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Youshido/GraphQL/pulls/75/commits","review_comments_url":"https://api.github.com/repos/Youshido/GraphQL/pulls/75/comments","review_comment_url":"https://api.github.com/repos/Youshido/GraphQL/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Youshido/GraphQL/issues/75/comments","statuses_url":"https://api.github.com/repos/Youshido/GraphQL/statuses/b61aeb9ece5151daac2c088a17e9003fbf6a8ce8","head":{"label":"danbruder:74-support-fragments-on-unions-and-interfaces","ref":"74-support-fragments-on-unions-and-interfaces","sha":"b61aeb9ece5151daac2c088a17e9003fbf6a8ce8","user":{"login":"danbruder","id":1824117,"avatar_url":"https://avatars.githubusercontent.com/u/1824117?v=3","gravatar_id":"","url":"https://api.github.com/users/danbruder","html_url":"https://github.com/danbruder","followers_url":"https://api.github.com/users/danbruder/followers","following_url":"https://api.github.com/users/danbruder/following{/other_user}","gists_url":"https://api.github.com/users/danbruder/gists{/gist_id}","starred_url":"https://api.github.com/users/danbruder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danbruder/subscriptions","organizations_url":"https://api.github.com/users/danbruder/orgs","repos_url":"https://api.github.com/users/danbruder/repos","events_url":"https://api.github.com/users/danbruder/events{/privacy}","received_events_url":"https://api.github.com/users/danbruder/received_events","type":"User","site_admin":false},"repo":{"id":72925203,"name":"GraphQL","full_name":"danbruder/GraphQL","owner":{"login":"danbruder","id":1824117,"avatar_url":"https://avatars.githubusercontent.com/u/1824117?v=3","gravatar_id":"","url":"https://api.github.com/users/danbruder","html_url":"https://github.com/danbruder","followers_url":"https://api.github.com/users/danbruder/followers","following_url":"https://api.github.com/users/danbruder/following{/other_user}","gists_url":"https://api.github.com/users/danbruder/gists{/gist_id}","starred_url":"https://api.github.com/users/danbruder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danbruder/subscriptions","organizations_url":"https://api.github.com/users/danbruder/orgs","repos_url":"https://api.github.com/users/danbruder/repos","events_url":"https://api.github.com/users/danbruder/events{/privacy}","received_events_url":"https://api.github.com/users/danbruder/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danbruder/GraphQL","description":"Pure PHP realization of GraphQL protocol","fork":true,"url":"https://api.github.com/repos/danbruder/GraphQL","forks_url":"https://api.github.com/repos/danbruder/GraphQL/forks","keys_url":"https://api.github.com/repos/danbruder/GraphQL/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danbruder/GraphQL/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danbruder/GraphQL/teams","hooks_url":"https://api.github.com/repos/danbruder/GraphQL/hooks","issue_events_url":"https://api.github.com/repos/danbruder/GraphQL/issues/events{/number}","events_url":"https://api.github.com/repos/danbruder/GraphQL/events","assignees_url":"https://api.github.com/repos/danbruder/GraphQL/assignees{/user}","branches_url":"https://api.github.com/repos/danbruder/GraphQL/branches{/branch}","tags_url":"https://api.github.com/repos/danbruder/GraphQL/tags","blobs_url":"https://api.github.com/repos/danbruder/GraphQL/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danbruder/GraphQL/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danbruder/GraphQL/git/refs{/sha}","trees_url":"https://api.github.com/repos/danbruder/GraphQL/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danbruder/GraphQL/statuses/{sha}","languages_url":"https://api.github.com/repos/danbruder/GraphQL/languages","stargazers_url":"https://api.github.com/repos/danbruder/GraphQL/stargazers","contributors_url":"https://api.github.com/repos/danbruder/GraphQL/contributors","subscribers_url":"https://api.github.com/repos/danbruder/GraphQL/subscribers","subscription_url":"https://api.github.com/repos/danbruder/GraphQL/subscription","commits_url":"https://api.github.com/repos/danbruder/GraphQL/commits{/sha}","git_commits_url":"https://api.github.com/repos/danbruder/GraphQL/git/commits{/sha}","comments_url":"https://api.github.com/repos/danbruder/GraphQL/comments{/number}","issue_comment_url":"https://api.github.com/repos/danbruder/GraphQL/issues/comments{/number}","contents_url":"https://api.github.com/repos/danbruder/GraphQL/contents/{+path}","compare_url":"https://api.github.com/repos/danbruder/GraphQL/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danbruder/GraphQL/merges","archive_url":"https://api.github.com/repos/danbruder/GraphQL/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danbruder/GraphQL/downloads","issues_url":"https://api.github.com/repos/danbruder/GraphQL/issues{/number}","pulls_url":"https://api.github.com/repos/danbruder/GraphQL/pulls{/number}","milestones_url":"https://api.github.com/repos/danbruder/GraphQL/milestones{/number}","notifications_url":"https://api.github.com/repos/danbruder/GraphQL/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danbruder/GraphQL/labels{/name}","releases_url":"https://api.github.com/repos/danbruder/GraphQL/releases{/id}","deployments_url":"https://api.github.com/repos/danbruder/GraphQL/deployments","created_at":"2016-11-05T12:40:09Z","updated_at":"2016-11-05T12:40:10Z","pushed_at":"2016-11-05T13:10:25Z","git_url":"git://github.com/danbruder/GraphQL.git","ssh_url":"git@github.com:danbruder/GraphQL.git","clone_url":"https://github.com/danbruder/GraphQL.git","svn_url":"https://github.com/danbruder/GraphQL","homepage":null,"size":2052,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Youshido:master","ref":"master","sha":"8c19eaad41ecbc0502f3b34c3d58932862a46b21","user":{"login":"Youshido","id":5954642,"avatar_url":"https://avatars.githubusercontent.com/u/5954642?v=3","gravatar_id":"","url":"https://api.github.com/users/Youshido","html_url":"https://github.com/Youshido","followers_url":"https://api.github.com/users/Youshido/followers","following_url":"https://api.github.com/users/Youshido/following{/other_user}","gists_url":"https://api.github.com/users/Youshido/gists{/gist_id}","starred_url":"https://api.github.com/users/Youshido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Youshido/subscriptions","organizations_url":"https://api.github.com/users/Youshido/orgs","repos_url":"https://api.github.com/users/Youshido/repos","events_url":"https://api.github.com/users/Youshido/events{/privacy}","received_events_url":"https://api.github.com/users/Youshido/received_events","type":"Organization","site_admin":false},"repo":{"id":46961954,"name":"GraphQL","full_name":"Youshido/GraphQL","owner":{"login":"Youshido","id":5954642,"avatar_url":"https://avatars.githubusercontent.com/u/5954642?v=3","gravatar_id":"","url":"https://api.github.com/users/Youshido","html_url":"https://github.com/Youshido","followers_url":"https://api.github.com/users/Youshido/followers","following_url":"https://api.github.com/users/Youshido/following{/other_user}","gists_url":"https://api.github.com/users/Youshido/gists{/gist_id}","starred_url":"https://api.github.com/users/Youshido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Youshido/subscriptions","organizations_url":"https://api.github.com/users/Youshido/orgs","repos_url":"https://api.github.com/users/Youshido/repos","events_url":"https://api.github.com/users/Youshido/events{/privacy}","received_events_url":"https://api.github.com/users/Youshido/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Youshido/GraphQL","description":"Pure PHP realization of GraphQL protocol","fork":false,"url":"https://api.github.com/repos/Youshido/GraphQL","forks_url":"https://api.github.com/repos/Youshido/GraphQL/forks","keys_url":"https://api.github.com/repos/Youshido/GraphQL/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Youshido/GraphQL/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Youshido/GraphQL/teams","hooks_url":"https://api.github.com/repos/Youshido/GraphQL/hooks","issue_events_url":"https://api.github.com/repos/Youshido/GraphQL/issues/events{/number}","events_url":"https://api.github.com/repos/Youshido/GraphQL/events","assignees_url":"https://api.github.com/repos/Youshido/GraphQL/assignees{/user}","branches_url":"https://api.github.com/repos/Youshido/GraphQL/branches{/branch}","tags_url":"https://api.github.com/repos/Youshido/GraphQL/tags","blobs_url":"https://api.github.com/repos/Youshido/GraphQL/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Youshido/GraphQL/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Youshido/GraphQL/git/refs{/sha}","trees_url":"https://api.github.com/repos/Youshido/GraphQL/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Youshido/GraphQL/statuses/{sha}","languages_url":"https://api.github.com/repos/Youshido/GraphQL/languages","stargazers_url":"https://api.github.com/repos/Youshido/GraphQL/stargazers","contributors_url":"https://api.github.com/repos/Youshido/GraphQL/contributors","subscribers_url":"https://api.github.com/repos/Youshido/GraphQL/subscribers","subscription_url":"https://api.github.com/repos/Youshido/GraphQL/subscription","commits_url":"https://api.github.com/repos/Youshido/GraphQL/commits{/sha}","git_commits_url":"https://api.github.com/repos/Youshido/GraphQL/git/commits{/sha}","comments_url":"https://api.github.com/repos/Youshido/GraphQL/comments{/number}","issue_comment_url":"https://api.github.com/repos/Youshido/GraphQL/issues/comments{/number}","contents_url":"https://api.github.com/repos/Youshido/GraphQL/contents/{+path}","compare_url":"https://api.github.com/repos/Youshido/GraphQL/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Youshido/GraphQL/merges","archive_url":"https://api.github.com/repos/Youshido/GraphQL/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Youshido/GraphQL/downloads","issues_url":"https://api.github.com/repos/Youshido/GraphQL/issues{/number}","pulls_url":"https://api.github.com/repos/Youshido/GraphQL/pulls{/number}","milestones_url":"https://api.github.com/repos/Youshido/GraphQL/milestones{/number}","notifications_url":"https://api.github.com/repos/Youshido/GraphQL/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Youshido/GraphQL/labels{/name}","releases_url":"https://api.github.com/repos/Youshido/GraphQL/releases{/id}","deployments_url":"https://api.github.com/repos/Youshido/GraphQL/deployments","created_at":"2015-11-27T05:44:33Z","updated_at":"2016-11-04T17:38:29Z","pushed_at":"2016-11-05T13:14:28Z","git_url":"git://github.com/Youshido/GraphQL.git","ssh_url":"git@github.com:Youshido/GraphQL.git","clone_url":"https://github.com/Youshido/GraphQL.git","svn_url":"https://github.com/Youshido/GraphQL","homepage":null,"size":2052,"stargazers_count":204,"watchers_count":204,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":14,"forks":30,"open_issues":14,"watchers":204,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Youshido/GraphQL/pulls/75"},"html":{"href":"https://github.com/Youshido/GraphQL/pull/75"},"issue":{"href":"https://api.github.com/repos/Youshido/GraphQL/issues/75"},"comments":{"href":"https://api.github.com/repos/Youshido/GraphQL/issues/75/comments"},"review_comments":{"href":"https://api.github.com/repos/Youshido/GraphQL/pulls/75/comments"},"review_comment":{"href":"https://api.github.com/repos/Youshido/GraphQL/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Youshido/GraphQL/pulls/75/commits"},"statuses":{"href":"https://api.github.com/repos/Youshido/GraphQL/statuses/b61aeb9ece5151daac2c088a17e9003fbf6a8ce8"}}}}
{"actor":{"display_login":"fubhy"}}