{"action":"created","comment":{"url":"https://api.github.com/repos/poledev/michel/pulls/comments/23854243","id":23854243,"diff_hunk":"@@ -55,6 +56,50 @@ public function testPreviewAction()\n         $this->assertEquals(1, $crawler->filter('body.preview')->count());\n     }\n \n+    public function testUpdateAction()\n+    {\n+        $client = static::createClient();\n+        $em = $client->getContainer()->get('doctrine')->getManager();\n+        $job = $em->getRepository('SensioLabsJobBoardBundle:Job')->findOneBy(array('user' => $this->user));\n+\n+        if (!$job instanceof Job) {\n+            throw new EntityNotFoundException('Entity not found');\n+        }\n+\n+        $route = '/' . $job->getCountry() . '/' . $job->getContract() . '/' . $job->getSlug() . '/update';\n+\n+        //Not authenticated => Redirect to connect.sensiolabs\n+        $client->request('GET', $route);\n+        $this->assertConnectRedirect($client);\n+\n+        //Authenticated\n+        $this->logIn($client);\n+\n+        $crawler = $client->request('GET', $route);\n+        $this->assertEquals(1, $crawler->filter('body.add')->count());\n+\n+        $form = $crawler->selectButton('Save')->form();\n+\n+        $this->assertEquals($job->getTitle(), $form->get('job[title]')->getValue());\n+\n+        $client->submit($form, $this->jobData());\n+        $crawler = $client->followRedirect();\n+\n+        $this->assertEquals(1, $crawler->filter('body.preview')->count());","path":"src/SensioLabs/JobBoardBundle/Tests/Controller/JobControllerTest.php","position":47,"original_position":47,"commit_id":"ff37aa7621296223e14a6a0d388689efc05947da","original_commit_id":"ff37aa7621296223e14a6a0d388689efc05947da","user":{"login":"florianbelhomme","id":4208880,"avatar_url":"https://avatars.githubusercontent.com/u/4208880?v=3","gravatar_id":"","url":"https://api.github.com/users/florianbelhomme","html_url":"https://github.com/florianbelhomme","followers_url":"https://api.github.com/users/florianbelhomme/followers","following_url":"https://api.github.com/users/florianbelhomme/following{/other_user}","gists_url":"https://api.github.com/users/florianbelhomme/gists{/gist_id}","starred_url":"https://api.github.com/users/florianbelhomme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/florianbelhomme/subscriptions","organizations_url":"https://api.github.com/users/florianbelhomme/orgs","repos_url":"https://api.github.com/users/florianbelhomme/repos","events_url":"https://api.github.com/users/florianbelhomme/events{/privacy}","received_events_url":"https://api.github.com/users/florianbelhomme/received_events","type":"User","site_admin":false},"body":"=> assertCount https://phpunit.de/manual/current/en/appendixes.assertions.html#appendixes.assertions.assertCount The returned messages are better if you use the specific assert","created_at":"2015-01-30T16:47:40Z","updated_at":"2015-01-30T16:47:40Z","html_url":"https://github.com/poledev/michel/pull/33#discussion_r23854243","pull_request_url":"https://api.github.com/repos/poledev/michel/pulls/33","_links":{"self":{"href":"https://api.github.com/repos/poledev/michel/pulls/comments/23854243"},"html":{"href":"https://github.com/poledev/michel/pull/33#discussion_r23854243"},"pull_request":{"href":"https://api.github.com/repos/poledev/michel/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/poledev/michel/pulls/33","id":28179485,"html_url":"https://github.com/poledev/michel/pull/33","diff_url":"https://github.com/poledev/michel/pull/33.diff","patch_url":"https://github.com/poledev/michel/pull/33.patch","issue_url":"https://api.github.com/repos/poledev/michel/issues/33","number":33,"state":"open","locked":false,"title":"[RFR] 07 - announcement details ","user":{"login":"mRoca","id":4746261,"avatar_url":"https://avatars.githubusercontent.com/u/4746261?v=3","gravatar_id":"","url":"https://api.github.com/users/mRoca","html_url":"https://github.com/mRoca","followers_url":"https://api.github.com/users/mRoca/followers","following_url":"https://api.github.com/users/mRoca/following{/other_user}","gists_url":"https://api.github.com/users/mRoca/gists{/gist_id}","starred_url":"https://api.github.com/users/mRoca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mRoca/subscriptions","organizations_url":"https://api.github.com/users/mRoca/orgs","repos_url":"https://api.github.com/users/mRoca/repos","events_url":"https://api.github.com/users/mRoca/events{/privacy}","received_events_url":"https://api.github.com/users/mRoca/received_events","type":"User","site_admin":false},"body":"Ref #17 ","created_at":"2015-01-28T09:39:52Z","updated_at":"2015-01-30T16:47:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a986ea898bb160beee9d1c779a4845807b83b00","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/poledev/michel/pulls/33/commits","review_comments_url":"https://api.github.com/repos/poledev/michel/pulls/33/comments","review_comment_url":"https://api.github.com/repos/poledev/michel/pulls/comments/{number}","comments_url":"https://api.github.com/repos/poledev/michel/issues/33/comments","statuses_url":"https://api.github.com/repos/poledev/michel/statuses/ff37aa7621296223e14a6a0d388689efc05947da","head":{"label":"mRoca:feature/07-announcement-details-dev","ref":"feature/07-announcement-details-dev","sha":"ff37aa7621296223e14a6a0d388689efc05947da","user":{"login":"mRoca","id":4746261,"avatar_url":"https://avatars.githubusercontent.com/u/4746261?v=3","gravatar_id":"","url":"https://api.github.com/users/mRoca","html_url":"https://github.com/mRoca","followers_url":"https://api.github.com/users/mRoca/followers","following_url":"https://api.github.com/users/mRoca/following{/other_user}","gists_url":"https://api.github.com/users/mRoca/gists{/gist_id}","starred_url":"https://api.github.com/users/mRoca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mRoca/subscriptions","organizations_url":"https://api.github.com/users/mRoca/orgs","repos_url":"https://api.github.com/users/mRoca/repos","events_url":"https://api.github.com/users/mRoca/events{/privacy}","received_events_url":"https://api.github.com/users/mRoca/received_events","type":"User","site_admin":false},"repo":{"id":29581363,"name":"michel","full_name":"mRoca/michel","owner":{"login":"mRoca","id":4746261,"avatar_url":"https://avatars.githubusercontent.com/u/4746261?v=3","gravatar_id":"","url":"https://api.github.com/users/mRoca","html_url":"https://github.com/mRoca","followers_url":"https://api.github.com/users/mRoca/followers","following_url":"https://api.github.com/users/mRoca/following{/other_user}","gists_url":"https://api.github.com/users/mRoca/gists{/gist_id}","starred_url":"https://api.github.com/users/mRoca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mRoca/subscriptions","organizations_url":"https://api.github.com/users/mRoca/orgs","repos_url":"https://api.github.com/users/mRoca/repos","events_url":"https://api.github.com/users/mRoca/events{/privacy}","received_events_url":"https://api.github.com/users/mRoca/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mRoca/michel","description":null,"fork":true,"url":"https://api.github.com/repos/mRoca/michel","forks_url":"https://api.github.com/repos/mRoca/michel/forks","keys_url":"https://api.github.com/repos/mRoca/michel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mRoca/michel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mRoca/michel/teams","hooks_url":"https://api.github.com/repos/mRoca/michel/hooks","issue_events_url":"https://api.github.com/repos/mRoca/michel/issues/events{/number}","events_url":"https://api.github.com/repos/mRoca/michel/events","assignees_url":"https://api.github.com/repos/mRoca/michel/assignees{/user}","branches_url":"https://api.github.com/repos/mRoca/michel/branches{/branch}","tags_url":"https://api.github.com/repos/mRoca/michel/tags","blobs_url":"https://api.github.com/repos/mRoca/michel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mRoca/michel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mRoca/michel/git/refs{/sha}","trees_url":"https://api.github.com/repos/mRoca/michel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mRoca/michel/statuses/{sha}","languages_url":"https://api.github.com/repos/mRoca/michel/languages","stargazers_url":"https://api.github.com/repos/mRoca/michel/stargazers","contributors_url":"https://api.github.com/repos/mRoca/michel/contributors","subscribers_url":"https://api.github.com/repos/mRoca/michel/subscribers","subscription_url":"https://api.github.com/repos/mRoca/michel/subscription","commits_url":"https://api.github.com/repos/mRoca/michel/commits{/sha}","git_commits_url":"https://api.github.com/repos/mRoca/michel/git/commits{/sha}","comments_url":"https://api.github.com/repos/mRoca/michel/comments{/number}","issue_comment_url":"https://api.github.com/repos/mRoca/michel/issues/comments/{number}","contents_url":"https://api.github.com/repos/mRoca/michel/contents/{+path}","compare_url":"https://api.github.com/repos/mRoca/michel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mRoca/michel/merges","archive_url":"https://api.github.com/repos/mRoca/michel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mRoca/michel/downloads","issues_url":"https://api.github.com/repos/mRoca/michel/issues{/number}","pulls_url":"https://api.github.com/repos/mRoca/michel/pulls{/number}","milestones_url":"https://api.github.com/repos/mRoca/michel/milestones{/number}","notifications_url":"https://api.github.com/repos/mRoca/michel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mRoca/michel/labels{/name}","releases_url":"https://api.github.com/repos/mRoca/michel/releases{/id}","created_at":"2015-01-21T09:10:48Z","updated_at":"2015-01-29T15:12:20Z","pushed_at":"2015-01-30T14:15:37Z","git_url":"git://github.com/mRoca/michel.git","ssh_url":"git@github.com:mRoca/michel.git","clone_url":"https://github.com/mRoca/michel.git","svn_url":"https://github.com/mRoca/michel","homepage":null,"size":1232,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":false,"has_wiki":false,"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":"poledev:master","ref":"master","sha":"4e1600d79f89e4b9118c9b0a000015f00176e794","user":{"login":"poledev","id":6369679,"avatar_url":"https://avatars.githubusercontent.com/u/6369679?v=3","gravatar_id":"","url":"https://api.github.com/users/poledev","html_url":"https://github.com/poledev","followers_url":"https://api.github.com/users/poledev/followers","following_url":"https://api.github.com/users/poledev/following{/other_user}","gists_url":"https://api.github.com/users/poledev/gists{/gist_id}","starred_url":"https://api.github.com/users/poledev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poledev/subscriptions","organizations_url":"https://api.github.com/users/poledev/orgs","repos_url":"https://api.github.com/users/poledev/repos","events_url":"https://api.github.com/users/poledev/events{/privacy}","received_events_url":"https://api.github.com/users/poledev/received_events","type":"Organization","site_admin":false},"repo":{"id":29355950,"name":"michel","full_name":"poledev/michel","owner":{"login":"poledev","id":6369679,"avatar_url":"https://avatars.githubusercontent.com/u/6369679?v=3","gravatar_id":"","url":"https://api.github.com/users/poledev","html_url":"https://github.com/poledev","followers_url":"https://api.github.com/users/poledev/followers","following_url":"https://api.github.com/users/poledev/following{/other_user}","gists_url":"https://api.github.com/users/poledev/gists{/gist_id}","starred_url":"https://api.github.com/users/poledev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poledev/subscriptions","organizations_url":"https://api.github.com/users/poledev/orgs","repos_url":"https://api.github.com/users/poledev/repos","events_url":"https://api.github.com/users/poledev/events{/privacy}","received_events_url":"https://api.github.com/users/poledev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/poledev/michel","description":null,"fork":false,"url":"https://api.github.com/repos/poledev/michel","forks_url":"https://api.github.com/repos/poledev/michel/forks","keys_url":"https://api.github.com/repos/poledev/michel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/poledev/michel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/poledev/michel/teams","hooks_url":"https://api.github.com/repos/poledev/michel/hooks","issue_events_url":"https://api.github.com/repos/poledev/michel/issues/events{/number}","events_url":"https://api.github.com/repos/poledev/michel/events","assignees_url":"https://api.github.com/repos/poledev/michel/assignees{/user}","branches_url":"https://api.github.com/repos/poledev/michel/branches{/branch}","tags_url":"https://api.github.com/repos/poledev/michel/tags","blobs_url":"https://api.github.com/repos/poledev/michel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/poledev/michel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/poledev/michel/git/refs{/sha}","trees_url":"https://api.github.com/repos/poledev/michel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/poledev/michel/statuses/{sha}","languages_url":"https://api.github.com/repos/poledev/michel/languages","stargazers_url":"https://api.github.com/repos/poledev/michel/stargazers","contributors_url":"https://api.github.com/repos/poledev/michel/contributors","subscribers_url":"https://api.github.com/repos/poledev/michel/subscribers","subscription_url":"https://api.github.com/repos/poledev/michel/subscription","commits_url":"https://api.github.com/repos/poledev/michel/commits{/sha}","git_commits_url":"https://api.github.com/repos/poledev/michel/git/commits{/sha}","comments_url":"https://api.github.com/repos/poledev/michel/comments{/number}","issue_comment_url":"https://api.github.com/repos/poledev/michel/issues/comments/{number}","contents_url":"https://api.github.com/repos/poledev/michel/contents/{+path}","compare_url":"https://api.github.com/repos/poledev/michel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/poledev/michel/merges","archive_url":"https://api.github.com/repos/poledev/michel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/poledev/michel/downloads","issues_url":"https://api.github.com/repos/poledev/michel/issues{/number}","pulls_url":"https://api.github.com/repos/poledev/michel/pulls{/number}","milestones_url":"https://api.github.com/repos/poledev/michel/milestones{/number}","notifications_url":"https://api.github.com/repos/poledev/michel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/poledev/michel/labels{/name}","releases_url":"https://api.github.com/repos/poledev/michel/releases{/id}","created_at":"2015-01-16T16:06:52Z","updated_at":"2015-01-29T14:08:17Z","pushed_at":"2015-01-29T14:11:31Z","git_url":"git://github.com/poledev/michel.git","ssh_url":"git@github.com:poledev/michel.git","clone_url":"https://github.com/poledev/michel.git","svn_url":"https://github.com/poledev/michel","homepage":null,"size":1272,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":25,"forks":1,"open_issues":25,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/poledev/michel/pulls/33"},"html":{"href":"https://github.com/poledev/michel/pull/33"},"issue":{"href":"https://api.github.com/repos/poledev/michel/issues/33"},"comments":{"href":"https://api.github.com/repos/poledev/michel/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/poledev/michel/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/poledev/michel/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/poledev/michel/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/poledev/michel/statuses/ff37aa7621296223e14a6a0d388689efc05947da"}}}}