{"action":"created","comment":{"url":"https://api.github.com/repos/poledev/hubert/pulls/comments/39174702","id":39174702,"diff_hunk":"@@ -123,4 +123,65 @@ public function updateSuccess()\n \n         $this->assertGreaterThan(0, $crawler->filter('[id=breadcrumb] .active:contains(Preview)')->count());\n     }\n+\n+    /**\n+     * @test\n+     */\n+    public function show()\n+    {\n+        $client = static::createClient();\n+        $twigExtension = static::$kernel->getContainer()->get('twig.job_board_extension');\n+\n+        $job = $this->fixtures->getReference('orm-job-long');\n+        $jobUrl =\n+            '/'.$job->getCompany()->getCountry().\n+            '/'.$job->getContract().\n+            '/'.$job->getSlug();\n+\n+        $crawler = $client->request('GET', $jobUrl);\n+        $this->assertSame(Response::HTTP_OK, $client->getResponse()->getStatusCode());\n+        $this->assertSame($job->getTitle(), trim($crawler->filter('.title')->text()));\n+        $this->assertSame('@ '.$job->getCompany()->getName(), trim($crawler->filter('.company')->text()));\n+\n+        $cityNode = $crawler->filter('.details .filter a:nth-child(1)');\n+        $this->assertSame(\n+            $job->getCompany()->getCity().', '.$twigExtension->filterCountryName($job->getCompany()->getCountry()),\n+            $cityNode->text()\n+        );\n+        $this->assertSame(\n+            'http://'.$client->getServerParameter('HTTP_HOST').'/?country='.$job->getCompany()->getCountry(),\n+            $cityNode->link()->getUri()\n+        );\n+\n+        $contractNode = $crawler->filter('.details .filter a:nth-child(2)');\n+        $this->assertSame(\n+            Job::getContactTypes()[$job->getContract()],\n+            $contractNode->text()\n+        );\n+        $this->assertSame(\n+            'http://'.$client->getServerParameter('HTTP_HOST').'/?country='.$job->getCompany()->getCountry().'&contract-type='.$job->getContract(),","path":"src/SensioLabs/JobBoardBundle/TestsFunctional/Controller/JobControllerTest.php","position":40,"original_position":40,"commit_id":"3310a9733da1ce129b75e3691702ba2c3f5d46b4","original_commit_id":"3310a9733da1ce129b75e3691702ba2c3f5d46b4","user":{"login":"salahm","id":1071005,"avatar_url":"https://avatars.githubusercontent.com/u/1071005?v=3","gravatar_id":"","url":"https://api.github.com/users/salahm","html_url":"https://github.com/salahm","followers_url":"https://api.github.com/users/salahm/followers","following_url":"https://api.github.com/users/salahm/following{/other_user}","gists_url":"https://api.github.com/users/salahm/gists{/gist_id}","starred_url":"https://api.github.com/users/salahm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salahm/subscriptions","organizations_url":"https://api.github.com/users/salahm/orgs","repos_url":"https://api.github.com/users/salahm/repos","events_url":"https://api.github.com/users/salahm/events{/privacy}","received_events_url":"https://api.github.com/users/salahm/received_events","type":"User","site_admin":false},"body":"do you really need an absolute url here ?","created_at":"2015-09-10T15:36:25Z","updated_at":"2015-09-10T15:36:25Z","html_url":"https://github.com/poledev/hubert/pull/29#discussion_r39174702","pull_request_url":"https://api.github.com/repos/poledev/hubert/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/poledev/hubert/pulls/comments/39174702"},"html":{"href":"https://github.com/poledev/hubert/pull/29#discussion_r39174702"},"pull_request":{"href":"https://api.github.com/repos/poledev/hubert/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/poledev/hubert/pulls/29","id":44537067,"html_url":"https://github.com/poledev/hubert/pull/29","diff_url":"https://github.com/poledev/hubert/pull/29.diff","patch_url":"https://github.com/poledev/hubert/pull/29.patch","issue_url":"https://api.github.com/repos/poledev/hubert/issues/29","number":29,"state":"open","locked":false,"title":"07_As a user, I need to consult the detail of an announcement","user":{"login":"Jean-Beru","id":6114779,"avatar_url":"https://avatars.githubusercontent.com/u/6114779?v=3","gravatar_id":"","url":"https://api.github.com/users/Jean-Beru","html_url":"https://github.com/Jean-Beru","followers_url":"https://api.github.com/users/Jean-Beru/followers","following_url":"https://api.github.com/users/Jean-Beru/following{/other_user}","gists_url":"https://api.github.com/users/Jean-Beru/gists{/gist_id}","starred_url":"https://api.github.com/users/Jean-Beru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jean-Beru/subscriptions","organizations_url":"https://api.github.com/users/Jean-Beru/orgs","repos_url":"https://api.github.com/users/Jean-Beru/repos","events_url":"https://api.github.com/users/Jean-Beru/events{/privacy}","received_events_url":"https://api.github.com/users/Jean-Beru/received_events","type":"User","site_admin":false},"body":"Issue #20","created_at":"2015-09-09T11:11:35Z","updated_at":"2015-09-10T15:36:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fcbc53861fde402964fd5a392511c7f53106f2c8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/poledev/hubert/pulls/29/commits","review_comments_url":"https://api.github.com/repos/poledev/hubert/pulls/29/comments","review_comment_url":"https://api.github.com/repos/poledev/hubert/pulls/comments{/number}","comments_url":"https://api.github.com/repos/poledev/hubert/issues/29/comments","statuses_url":"https://api.github.com/repos/poledev/hubert/statuses/3310a9733da1ce129b75e3691702ba2c3f5d46b4","head":{"label":"poledev:issue-20","ref":"issue-20","sha":"3310a9733da1ce129b75e3691702ba2c3f5d46b4","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":41311748,"name":"hubert","full_name":"poledev/hubert","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/hubert","description":null,"fork":false,"url":"https://api.github.com/repos/poledev/hubert","forks_url":"https://api.github.com/repos/poledev/hubert/forks","keys_url":"https://api.github.com/repos/poledev/hubert/keys{/key_id}","collaborators_url":"https://api.github.com/repos/poledev/hubert/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/poledev/hubert/teams","hooks_url":"https://api.github.com/repos/poledev/hubert/hooks","issue_events_url":"https://api.github.com/repos/poledev/hubert/issues/events{/number}","events_url":"https://api.github.com/repos/poledev/hubert/events","assignees_url":"https://api.github.com/repos/poledev/hubert/assignees{/user}","branches_url":"https://api.github.com/repos/poledev/hubert/branches{/branch}","tags_url":"https://api.github.com/repos/poledev/hubert/tags","blobs_url":"https://api.github.com/repos/poledev/hubert/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/poledev/hubert/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/poledev/hubert/git/refs{/sha}","trees_url":"https://api.github.com/repos/poledev/hubert/git/trees{/sha}","statuses_url":"https://api.github.com/repos/poledev/hubert/statuses/{sha}","languages_url":"https://api.github.com/repos/poledev/hubert/languages","stargazers_url":"https://api.github.com/repos/poledev/hubert/stargazers","contributors_url":"https://api.github.com/repos/poledev/hubert/contributors","subscribers_url":"https://api.github.com/repos/poledev/hubert/subscribers","subscription_url":"https://api.github.com/repos/poledev/hubert/subscription","commits_url":"https://api.github.com/repos/poledev/hubert/commits{/sha}","git_commits_url":"https://api.github.com/repos/poledev/hubert/git/commits{/sha}","comments_url":"https://api.github.com/repos/poledev/hubert/comments{/number}","issue_comment_url":"https://api.github.com/repos/poledev/hubert/issues/comments{/number}","contents_url":"https://api.github.com/repos/poledev/hubert/contents/{+path}","compare_url":"https://api.github.com/repos/poledev/hubert/compare/{base}...{head}","merges_url":"https://api.github.com/repos/poledev/hubert/merges","archive_url":"https://api.github.com/repos/poledev/hubert/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/poledev/hubert/downloads","issues_url":"https://api.github.com/repos/poledev/hubert/issues{/number}","pulls_url":"https://api.github.com/repos/poledev/hubert/pulls{/number}","milestones_url":"https://api.github.com/repos/poledev/hubert/milestones{/number}","notifications_url":"https://api.github.com/repos/poledev/hubert/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/poledev/hubert/labels{/name}","releases_url":"https://api.github.com/repos/poledev/hubert/releases{/id}","created_at":"2015-08-24T15:40:10Z","updated_at":"2015-08-24T15:40:28Z","pushed_at":"2015-09-10T14:43:06Z","git_url":"git://github.com/poledev/hubert.git","ssh_url":"git@github.com:poledev/hubert.git","clone_url":"https://github.com/poledev/hubert.git","svn_url":"https://github.com/poledev/hubert","homepage":null,"size":823,"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":23,"forks":1,"open_issues":23,"watchers":0,"default_branch":"master"}},"base":{"label":"poledev:master","ref":"master","sha":"c8af2ad7acfac6c0ca6555f88d72315eabd0d498","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":41311748,"name":"hubert","full_name":"poledev/hubert","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/hubert","description":null,"fork":false,"url":"https://api.github.com/repos/poledev/hubert","forks_url":"https://api.github.com/repos/poledev/hubert/forks","keys_url":"https://api.github.com/repos/poledev/hubert/keys{/key_id}","collaborators_url":"https://api.github.com/repos/poledev/hubert/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/poledev/hubert/teams","hooks_url":"https://api.github.com/repos/poledev/hubert/hooks","issue_events_url":"https://api.github.com/repos/poledev/hubert/issues/events{/number}","events_url":"https://api.github.com/repos/poledev/hubert/events","assignees_url":"https://api.github.com/repos/poledev/hubert/assignees{/user}","branches_url":"https://api.github.com/repos/poledev/hubert/branches{/branch}","tags_url":"https://api.github.com/repos/poledev/hubert/tags","blobs_url":"https://api.github.com/repos/poledev/hubert/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/poledev/hubert/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/poledev/hubert/git/refs{/sha}","trees_url":"https://api.github.com/repos/poledev/hubert/git/trees{/sha}","statuses_url":"https://api.github.com/repos/poledev/hubert/statuses/{sha}","languages_url":"https://api.github.com/repos/poledev/hubert/languages","stargazers_url":"https://api.github.com/repos/poledev/hubert/stargazers","contributors_url":"https://api.github.com/repos/poledev/hubert/contributors","subscribers_url":"https://api.github.com/repos/poledev/hubert/subscribers","subscription_url":"https://api.github.com/repos/poledev/hubert/subscription","commits_url":"https://api.github.com/repos/poledev/hubert/commits{/sha}","git_commits_url":"https://api.github.com/repos/poledev/hubert/git/commits{/sha}","comments_url":"https://api.github.com/repos/poledev/hubert/comments{/number}","issue_comment_url":"https://api.github.com/repos/poledev/hubert/issues/comments{/number}","contents_url":"https://api.github.com/repos/poledev/hubert/contents/{+path}","compare_url":"https://api.github.com/repos/poledev/hubert/compare/{base}...{head}","merges_url":"https://api.github.com/repos/poledev/hubert/merges","archive_url":"https://api.github.com/repos/poledev/hubert/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/poledev/hubert/downloads","issues_url":"https://api.github.com/repos/poledev/hubert/issues{/number}","pulls_url":"https://api.github.com/repos/poledev/hubert/pulls{/number}","milestones_url":"https://api.github.com/repos/poledev/hubert/milestones{/number}","notifications_url":"https://api.github.com/repos/poledev/hubert/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/poledev/hubert/labels{/name}","releases_url":"https://api.github.com/repos/poledev/hubert/releases{/id}","created_at":"2015-08-24T15:40:10Z","updated_at":"2015-08-24T15:40:28Z","pushed_at":"2015-09-10T14:43:06Z","git_url":"git://github.com/poledev/hubert.git","ssh_url":"git@github.com:poledev/hubert.git","clone_url":"https://github.com/poledev/hubert.git","svn_url":"https://github.com/poledev/hubert","homepage":null,"size":823,"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":23,"forks":1,"open_issues":23,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/poledev/hubert/pulls/29"},"html":{"href":"https://github.com/poledev/hubert/pull/29"},"issue":{"href":"https://api.github.com/repos/poledev/hubert/issues/29"},"comments":{"href":"https://api.github.com/repos/poledev/hubert/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/poledev/hubert/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/poledev/hubert/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/poledev/hubert/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/poledev/hubert/statuses/3310a9733da1ce129b75e3691702ba2c3f5d46b4"}}}}