{"action":"created","comment":{"url":"https://api.github.com/repos/ulff/BehatRestApiExtension/pulls/comments/91042789","pull_request_review_id":11552224,"id":91042789,"diff_hunk":"@@ -526,6 +526,30 @@ public function theResponseCollectionShouldCountItems($expectedValue)\n         return;\n     }\n \n+    /**\n+     * When response JSON is a collection (array), it checks if there is field with value.\n+     *\n+     * Example: Then the response collection should have field \"name\" with value \"abcdef\"","path":"Context/RestApiContext.php","position":7,"original_position":7,"commit_id":"528bdfa0a2ea764d3dbf9ed942cea8a1e5865022","original_commit_id":"528bdfa0a2ea764d3dbf9ed942cea8a1e5865022","user":{"login":"ulff","id":2435762,"avatar_url":"https://avatars.githubusercontent.com/u/2435762?v=3","gravatar_id":"","url":"https://api.github.com/users/ulff","html_url":"https://github.com/ulff","followers_url":"https://api.github.com/users/ulff/followers","following_url":"https://api.github.com/users/ulff/following{/other_user}","gists_url":"https://api.github.com/users/ulff/gists{/gist_id}","starred_url":"https://api.github.com/users/ulff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulff/subscriptions","organizations_url":"https://api.github.com/users/ulff/orgs","repos_url":"https://api.github.com/users/ulff/repos","events_url":"https://api.github.com/users/ulff/events{/privacy}","received_events_url":"https://api.github.com/users/ulff/received_events","type":"User","site_admin":false},"body":"Example jak step (patrz następna linijka)","created_at":"2016-12-06T09:50:06Z","updated_at":"2016-12-06T09:50:06Z","html_url":"https://github.com/ulff/BehatRestApiExtension/pull/10#discussion_r91042789","pull_request_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/ulff/BehatRestApiExtension/pulls/comments/91042789"},"html":{"href":"https://github.com/ulff/BehatRestApiExtension/pull/10#discussion_r91042789"},"pull_request":{"href":"https://api.github.com/repos/ulff/BehatRestApiExtension/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/ulff/BehatRestApiExtension/pulls/10","id":96690291,"html_url":"https://github.com/ulff/BehatRestApiExtension/pull/10","diff_url":"https://github.com/ulff/BehatRestApiExtension/pull/10.diff","patch_url":"https://github.com/ulff/BehatRestApiExtension/pull/10.patch","issue_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/issues/10","number":10,"state":"open","locked":false,"title":"Checks if there is a field with value in the collection","user":{"login":"tetsuobe","id":2757697,"avatar_url":"https://avatars.githubusercontent.com/u/2757697?v=3","gravatar_id":"","url":"https://api.github.com/users/tetsuobe","html_url":"https://github.com/tetsuobe","followers_url":"https://api.github.com/users/tetsuobe/followers","following_url":"https://api.github.com/users/tetsuobe/following{/other_user}","gists_url":"https://api.github.com/users/tetsuobe/gists{/gist_id}","starred_url":"https://api.github.com/users/tetsuobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tetsuobe/subscriptions","organizations_url":"https://api.github.com/users/tetsuobe/orgs","repos_url":"https://api.github.com/users/tetsuobe/repos","events_url":"https://api.github.com/users/tetsuobe/events{/privacy}","received_events_url":"https://api.github.com/users/tetsuobe/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-06T09:43:19Z","updated_at":"2016-12-06T09:51:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"477e09ece8efd60498ef796ef51946ae9e19afc8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/pulls/10/commits","review_comments_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/pulls/10/comments","review_comment_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/issues/10/comments","statuses_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/statuses/528bdfa0a2ea764d3dbf9ed942cea8a1e5865022","head":{"label":"ulff:collection-have-value","ref":"collection-have-value","sha":"528bdfa0a2ea764d3dbf9ed942cea8a1e5865022","user":{"login":"ulff","id":2435762,"avatar_url":"https://avatars.githubusercontent.com/u/2435762?v=3","gravatar_id":"","url":"https://api.github.com/users/ulff","html_url":"https://github.com/ulff","followers_url":"https://api.github.com/users/ulff/followers","following_url":"https://api.github.com/users/ulff/following{/other_user}","gists_url":"https://api.github.com/users/ulff/gists{/gist_id}","starred_url":"https://api.github.com/users/ulff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulff/subscriptions","organizations_url":"https://api.github.com/users/ulff/orgs","repos_url":"https://api.github.com/users/ulff/repos","events_url":"https://api.github.com/users/ulff/events{/privacy}","received_events_url":"https://api.github.com/users/ulff/received_events","type":"User","site_admin":false},"repo":{"id":53502034,"name":"BehatRestApiExtension","full_name":"ulff/BehatRestApiExtension","owner":{"login":"ulff","id":2435762,"avatar_url":"https://avatars.githubusercontent.com/u/2435762?v=3","gravatar_id":"","url":"https://api.github.com/users/ulff","html_url":"https://github.com/ulff","followers_url":"https://api.github.com/users/ulff/followers","following_url":"https://api.github.com/users/ulff/following{/other_user}","gists_url":"https://api.github.com/users/ulff/gists{/gist_id}","starred_url":"https://api.github.com/users/ulff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulff/subscriptions","organizations_url":"https://api.github.com/users/ulff/orgs","repos_url":"https://api.github.com/users/ulff/repos","events_url":"https://api.github.com/users/ulff/events{/privacy}","received_events_url":"https://api.github.com/users/ulff/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ulff/BehatRestApiExtension","description":"Behat context for testing REST API calls","fork":false,"url":"https://api.github.com/repos/ulff/BehatRestApiExtension","forks_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/forks","keys_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/teams","hooks_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/hooks","issue_events_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/issues/events{/number}","events_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/events","assignees_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/assignees{/user}","branches_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/branches{/branch}","tags_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/tags","blobs_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/git/refs{/sha}","trees_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/statuses/{sha}","languages_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/languages","stargazers_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/stargazers","contributors_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/contributors","subscribers_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/subscribers","subscription_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/subscription","commits_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/commits{/sha}","git_commits_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/git/commits{/sha}","comments_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/comments{/number}","issue_comment_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/issues/comments{/number}","contents_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/contents/{+path}","compare_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/merges","archive_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/downloads","issues_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/issues{/number}","pulls_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/pulls{/number}","milestones_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/milestones{/number}","notifications_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/labels{/name}","releases_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/releases{/id}","deployments_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/deployments","created_at":"2016-03-09T14:02:06Z","updated_at":"2016-11-23T11:51:29Z","pushed_at":"2016-12-06T09:43:19Z","git_url":"git://github.com/ulff/BehatRestApiExtension.git","ssh_url":"git@github.com:ulff/BehatRestApiExtension.git","clone_url":"https://github.com/ulff/BehatRestApiExtension.git","svn_url":"https://github.com/ulff/BehatRestApiExtension","homepage":null,"size":27,"stargazers_count":4,"watchers_count":4,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":4,"default_branch":"master"}},"base":{"label":"ulff:master","ref":"master","sha":"dfb6cb0a78d27cacd194c7c1f15c41cce4cdc567","user":{"login":"ulff","id":2435762,"avatar_url":"https://avatars.githubusercontent.com/u/2435762?v=3","gravatar_id":"","url":"https://api.github.com/users/ulff","html_url":"https://github.com/ulff","followers_url":"https://api.github.com/users/ulff/followers","following_url":"https://api.github.com/users/ulff/following{/other_user}","gists_url":"https://api.github.com/users/ulff/gists{/gist_id}","starred_url":"https://api.github.com/users/ulff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulff/subscriptions","organizations_url":"https://api.github.com/users/ulff/orgs","repos_url":"https://api.github.com/users/ulff/repos","events_url":"https://api.github.com/users/ulff/events{/privacy}","received_events_url":"https://api.github.com/users/ulff/received_events","type":"User","site_admin":false},"repo":{"id":53502034,"name":"BehatRestApiExtension","full_name":"ulff/BehatRestApiExtension","owner":{"login":"ulff","id":2435762,"avatar_url":"https://avatars.githubusercontent.com/u/2435762?v=3","gravatar_id":"","url":"https://api.github.com/users/ulff","html_url":"https://github.com/ulff","followers_url":"https://api.github.com/users/ulff/followers","following_url":"https://api.github.com/users/ulff/following{/other_user}","gists_url":"https://api.github.com/users/ulff/gists{/gist_id}","starred_url":"https://api.github.com/users/ulff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulff/subscriptions","organizations_url":"https://api.github.com/users/ulff/orgs","repos_url":"https://api.github.com/users/ulff/repos","events_url":"https://api.github.com/users/ulff/events{/privacy}","received_events_url":"https://api.github.com/users/ulff/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ulff/BehatRestApiExtension","description":"Behat context for testing REST API calls","fork":false,"url":"https://api.github.com/repos/ulff/BehatRestApiExtension","forks_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/forks","keys_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/teams","hooks_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/hooks","issue_events_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/issues/events{/number}","events_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/events","assignees_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/assignees{/user}","branches_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/branches{/branch}","tags_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/tags","blobs_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/git/refs{/sha}","trees_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/statuses/{sha}","languages_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/languages","stargazers_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/stargazers","contributors_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/contributors","subscribers_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/subscribers","subscription_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/subscription","commits_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/commits{/sha}","git_commits_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/git/commits{/sha}","comments_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/comments{/number}","issue_comment_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/issues/comments{/number}","contents_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/contents/{+path}","compare_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/merges","archive_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/downloads","issues_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/issues{/number}","pulls_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/pulls{/number}","milestones_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/milestones{/number}","notifications_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/labels{/name}","releases_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/releases{/id}","deployments_url":"https://api.github.com/repos/ulff/BehatRestApiExtension/deployments","created_at":"2016-03-09T14:02:06Z","updated_at":"2016-11-23T11:51:29Z","pushed_at":"2016-12-06T09:43:19Z","git_url":"git://github.com/ulff/BehatRestApiExtension.git","ssh_url":"git@github.com:ulff/BehatRestApiExtension.git","clone_url":"https://github.com/ulff/BehatRestApiExtension.git","svn_url":"https://github.com/ulff/BehatRestApiExtension","homepage":null,"size":27,"stargazers_count":4,"watchers_count":4,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ulff/BehatRestApiExtension/pulls/10"},"html":{"href":"https://github.com/ulff/BehatRestApiExtension/pull/10"},"issue":{"href":"https://api.github.com/repos/ulff/BehatRestApiExtension/issues/10"},"comments":{"href":"https://api.github.com/repos/ulff/BehatRestApiExtension/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/ulff/BehatRestApiExtension/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/ulff/BehatRestApiExtension/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ulff/BehatRestApiExtension/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/ulff/BehatRestApiExtension/statuses/528bdfa0a2ea764d3dbf9ed942cea8a1e5865022"}}}}
{"actor":{"display_login":"ulff"}}