{"action":"created","comment":{"url":"https://api.github.com/repos/bbc/programmes-frontend/pulls/comments/184108881","pull_request_review_id":115233840,"id":184108881,"diff_hunk":"@@ -0,0 +1,92 @@\n+<?php\n+declare(strict_types = 1);\n+\n+namespace Tests\\App\\ExternalApi\\Ada\\Mapper;\n+\n+use App\\ExternalApi\\Ada\\Domain\\AdaClass;\n+use App\\ExternalApi\\Ada\\Domain\\AdaProgrammeItem;\n+use App\\ExternalApi\\Ada\\Mapper\\AdaClassMapper;\n+use App\\ExternalApi\\Ada\\Mapper\\AdaProgrammeMapper;\n+use BBC\\ProgrammesPagesService\\Domain\\Entity\\Image;\n+use BBC\\ProgrammesPagesService\\Domain\\Entity\\Programme;\n+use BBC\\ProgrammesPagesService\\Domain\\ValueObject\\Pid;\n+use PHPUnit\\Framework\\TestCase;\n+\n+class AdaProgrammeMapperTest extends TestCase\n+{\n+    public function testMapItemWithClassModels()\n+    {\n+        $programme = $this->createMock(Programme::class);\n+\n+        $adaEntity = [\n+            'pid' => 'p03knff4',\n+            'type' => 'category',\n+            'title' => 'Fellows of the Royal Society',\n+            'image' => 'ichef.bbci.co.uk/images/ic/$recipe/p01l7xx5.jpg',\n+            'class_count' => 16,\n+            'via' => [\n+                [\n+                    \"id\" => 'Maritime_history_of_the_Dutch_Republic',\n+                    \"type\" => 'category',\n+                    \"title\" => 'Maritime history of the Dutch Republic',\n+                    \"image\" => 'ichef.bbci.co.uk/images/ic/$recipe/p03knff4.jpg',\n+                    \"programme_items_count\" => 2,\n+                ],\n+            ],\n+        ];\n+\n+        $mapper = new AdaProgrammeMapper(new AdaClassMapper());\n+\n+        $pid = new Pid(\"p03knff4\");\n+\n+        $expectedClass = new AdaClass(\n+            \"Maritime_history_of_the_Dutch_Republic\",\n+            \"Maritime history of the Dutch Republic\",\n+            2,\n+            $pid,\n+            new Image(\n+                $pid,\n+                \"\",\n+                \"\",\n+                \"\",\n+                \"\",\n+                \"jpg\"\n+            )\n+        );\n+        $expectedEntity = new AdaProgrammeItem(\n+            $programme,\n+            'p03knff4',\n+            'Fellows of the Royal Society',\n+            16,\n+            [$expectedClass]\n+        );\n+\n+        $this->assertEquals($expectedEntity, $mapper->mapItem($programme, $adaEntity));\n+    }\n+\n+    public function testMapItemWithoutClassModels()\n+    {\n+        $programme = $this->createMock(Programme::class);\n+\n+        $adaEntity = [\n+            'pid' => 'b071vl2l',\n+            'type' => 'category',","path":"tests/ExternalApi/Ada/Mapper/AdaProgrammeMapperTest.php","position":73,"original_position":73,"commit_id":"bf211b1fa82df318f2431b15492e2e641fd8999a","original_commit_id":"bf211b1fa82df318f2431b15492e2e641fd8999a","user":{"login":"votemike","id":3957065,"avatar_url":"https://avatars3.githubusercontent.com/u/3957065?v=4","gravatar_id":"","url":"https://api.github.com/users/votemike","html_url":"https://github.com/votemike","followers_url":"https://api.github.com/users/votemike/followers","following_url":"https://api.github.com/users/votemike/following{/other_user}","gists_url":"https://api.github.com/users/votemike/gists{/gist_id}","starred_url":"https://api.github.com/users/votemike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/votemike/subscriptions","organizations_url":"https://api.github.com/users/votemike/orgs","repos_url":"https://api.github.com/users/votemike/repos","events_url":"https://api.github.com/users/votemike/events{/privacy}","received_events_url":"https://api.github.com/users/votemike/received_events","type":"User","site_admin":false},"body":"I don't think type is used.","created_at":"2018-04-25T15:41:49Z","updated_at":"2018-04-25T15:46:14Z","html_url":"https://github.com/bbc/programmes-frontend/pull/528#discussion_r184108881","pull_request_url":"https://api.github.com/repos/bbc/programmes-frontend/pulls/528","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/bbc/programmes-frontend/pulls/comments/184108881"},"html":{"href":"https://github.com/bbc/programmes-frontend/pull/528#discussion_r184108881"},"pull_request":{"href":"https://api.github.com/repos/bbc/programmes-frontend/pulls/528"}}},"pull_request":{"url":"https://api.github.com/repos/bbc/programmes-frontend/pulls/528","id":183474903,"html_url":"https://github.com/bbc/programmes-frontend/pull/528","diff_url":"https://github.com/bbc/programmes-frontend/pull/528.diff","patch_url":"https://github.com/bbc/programmes-frontend/pull/528.patch","issue_url":"https://api.github.com/repos/bbc/programmes-frontend/issues/528","number":528,"state":"open","locked":false,"title":"PROGRAMMES-6287 related topics and programmes","user":{"login":"benolot","id":2461562,"avatar_url":"https://avatars2.githubusercontent.com/u/2461562?v=4","gravatar_id":"","url":"https://api.github.com/users/benolot","html_url":"https://github.com/benolot","followers_url":"https://api.github.com/users/benolot/followers","following_url":"https://api.github.com/users/benolot/following{/other_user}","gists_url":"https://api.github.com/users/benolot/gists{/gist_id}","starred_url":"https://api.github.com/users/benolot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benolot/subscriptions","organizations_url":"https://api.github.com/users/benolot/orgs","repos_url":"https://api.github.com/users/benolot/repos","events_url":"https://api.github.com/users/benolot/events{/privacy}","received_events_url":"https://api.github.com/users/benolot/received_events","type":"User","site_admin":false},"body":"Ticket: https://jira.dev.bbc.co.uk/browse/PROGRAMMES-6287\r\n\r\n@tatitati, I removed the fauxcolumn class as it didn't seem to be doing anything, but broke mobile styling. I also removed the related tests.","created_at":"2018-04-23T15:35:57Z","updated_at":"2018-04-25T15:46:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2f8d21593875dd0bf259f65e931e227f8396e961","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bbc/programmes-frontend/pulls/528/commits","review_comments_url":"https://api.github.com/repos/bbc/programmes-frontend/pulls/528/comments","review_comment_url":"https://api.github.com/repos/bbc/programmes-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bbc/programmes-frontend/issues/528/comments","statuses_url":"https://api.github.com/repos/bbc/programmes-frontend/statuses/bf211b1fa82df318f2431b15492e2e641fd8999a","head":{"label":"bbc:PROGRAMMES-6287-related-topics-and-programmes","ref":"PROGRAMMES-6287-related-topics-and-programmes","sha":"bf211b1fa82df318f2431b15492e2e641fd8999a","user":{"login":"bbc","id":828722,"avatar_url":"https://avatars1.githubusercontent.com/u/828722?v=4","gravatar_id":"","url":"https://api.github.com/users/bbc","html_url":"https://github.com/bbc","followers_url":"https://api.github.com/users/bbc/followers","following_url":"https://api.github.com/users/bbc/following{/other_user}","gists_url":"https://api.github.com/users/bbc/gists{/gist_id}","starred_url":"https://api.github.com/users/bbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbc/subscriptions","organizations_url":"https://api.github.com/users/bbc/orgs","repos_url":"https://api.github.com/users/bbc/repos","events_url":"https://api.github.com/users/bbc/events{/privacy}","received_events_url":"https://api.github.com/users/bbc/received_events","type":"Organization","site_admin":false},"repo":{"id":85298889,"name":"programmes-frontend","full_name":"bbc/programmes-frontend","owner":{"login":"bbc","id":828722,"avatar_url":"https://avatars1.githubusercontent.com/u/828722?v=4","gravatar_id":"","url":"https://api.github.com/users/bbc","html_url":"https://github.com/bbc","followers_url":"https://api.github.com/users/bbc/followers","following_url":"https://api.github.com/users/bbc/following{/other_user}","gists_url":"https://api.github.com/users/bbc/gists{/gist_id}","starred_url":"https://api.github.com/users/bbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbc/subscriptions","organizations_url":"https://api.github.com/users/bbc/orgs","repos_url":"https://api.github.com/users/bbc/repos","events_url":"https://api.github.com/users/bbc/events{/privacy}","received_events_url":"https://api.github.com/users/bbc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bbc/programmes-frontend","description":"The new frontend for bbc.co.uk/programmes","fork":false,"url":"https://api.github.com/repos/bbc/programmes-frontend","forks_url":"https://api.github.com/repos/bbc/programmes-frontend/forks","keys_url":"https://api.github.com/repos/bbc/programmes-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bbc/programmes-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bbc/programmes-frontend/teams","hooks_url":"https://api.github.com/repos/bbc/programmes-frontend/hooks","issue_events_url":"https://api.github.com/repos/bbc/programmes-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/bbc/programmes-frontend/events","assignees_url":"https://api.github.com/repos/bbc/programmes-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/bbc/programmes-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/bbc/programmes-frontend/tags","blobs_url":"https://api.github.com/repos/bbc/programmes-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bbc/programmes-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bbc/programmes-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/bbc/programmes-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bbc/programmes-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/bbc/programmes-frontend/languages","stargazers_url":"https://api.github.com/repos/bbc/programmes-frontend/stargazers","contributors_url":"https://api.github.com/repos/bbc/programmes-frontend/contributors","subscribers_url":"https://api.github.com/repos/bbc/programmes-frontend/subscribers","subscription_url":"https://api.github.com/repos/bbc/programmes-frontend/subscription","commits_url":"https://api.github.com/repos/bbc/programmes-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/bbc/programmes-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/bbc/programmes-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/bbc/programmes-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/bbc/programmes-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/bbc/programmes-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bbc/programmes-frontend/merges","archive_url":"https://api.github.com/repos/bbc/programmes-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bbc/programmes-frontend/downloads","issues_url":"https://api.github.com/repos/bbc/programmes-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/bbc/programmes-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/bbc/programmes-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/bbc/programmes-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bbc/programmes-frontend/labels{/name}","releases_url":"https://api.github.com/repos/bbc/programmes-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/bbc/programmes-frontend/deployments","created_at":"2017-03-17T10:19:20Z","updated_at":"2018-04-25T15:27:48Z","pushed_at":"2018-04-25T15:27:49Z","git_url":"git://github.com/bbc/programmes-frontend.git","ssh_url":"git@github.com:bbc/programmes-frontend.git","clone_url":"https://github.com/bbc/programmes-frontend.git","svn_url":"https://github.com/bbc/programmes-frontend","homepage":"","size":3080,"stargazers_count":13,"watchers_count":13,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":4,"open_issues":3,"watchers":13,"default_branch":"develop"}},"base":{"label":"bbc:develop","ref":"develop","sha":"f9b89b058086fb98ce3e0f4cdbc90aa7d65f365d","user":{"login":"bbc","id":828722,"avatar_url":"https://avatars1.githubusercontent.com/u/828722?v=4","gravatar_id":"","url":"https://api.github.com/users/bbc","html_url":"https://github.com/bbc","followers_url":"https://api.github.com/users/bbc/followers","following_url":"https://api.github.com/users/bbc/following{/other_user}","gists_url":"https://api.github.com/users/bbc/gists{/gist_id}","starred_url":"https://api.github.com/users/bbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbc/subscriptions","organizations_url":"https://api.github.com/users/bbc/orgs","repos_url":"https://api.github.com/users/bbc/repos","events_url":"https://api.github.com/users/bbc/events{/privacy}","received_events_url":"https://api.github.com/users/bbc/received_events","type":"Organization","site_admin":false},"repo":{"id":85298889,"name":"programmes-frontend","full_name":"bbc/programmes-frontend","owner":{"login":"bbc","id":828722,"avatar_url":"https://avatars1.githubusercontent.com/u/828722?v=4","gravatar_id":"","url":"https://api.github.com/users/bbc","html_url":"https://github.com/bbc","followers_url":"https://api.github.com/users/bbc/followers","following_url":"https://api.github.com/users/bbc/following{/other_user}","gists_url":"https://api.github.com/users/bbc/gists{/gist_id}","starred_url":"https://api.github.com/users/bbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbc/subscriptions","organizations_url":"https://api.github.com/users/bbc/orgs","repos_url":"https://api.github.com/users/bbc/repos","events_url":"https://api.github.com/users/bbc/events{/privacy}","received_events_url":"https://api.github.com/users/bbc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bbc/programmes-frontend","description":"The new frontend for bbc.co.uk/programmes","fork":false,"url":"https://api.github.com/repos/bbc/programmes-frontend","forks_url":"https://api.github.com/repos/bbc/programmes-frontend/forks","keys_url":"https://api.github.com/repos/bbc/programmes-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bbc/programmes-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bbc/programmes-frontend/teams","hooks_url":"https://api.github.com/repos/bbc/programmes-frontend/hooks","issue_events_url":"https://api.github.com/repos/bbc/programmes-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/bbc/programmes-frontend/events","assignees_url":"https://api.github.com/repos/bbc/programmes-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/bbc/programmes-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/bbc/programmes-frontend/tags","blobs_url":"https://api.github.com/repos/bbc/programmes-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bbc/programmes-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bbc/programmes-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/bbc/programmes-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bbc/programmes-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/bbc/programmes-frontend/languages","stargazers_url":"https://api.github.com/repos/bbc/programmes-frontend/stargazers","contributors_url":"https://api.github.com/repos/bbc/programmes-frontend/contributors","subscribers_url":"https://api.github.com/repos/bbc/programmes-frontend/subscribers","subscription_url":"https://api.github.com/repos/bbc/programmes-frontend/subscription","commits_url":"https://api.github.com/repos/bbc/programmes-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/bbc/programmes-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/bbc/programmes-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/bbc/programmes-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/bbc/programmes-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/bbc/programmes-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bbc/programmes-frontend/merges","archive_url":"https://api.github.com/repos/bbc/programmes-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bbc/programmes-frontend/downloads","issues_url":"https://api.github.com/repos/bbc/programmes-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/bbc/programmes-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/bbc/programmes-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/bbc/programmes-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bbc/programmes-frontend/labels{/name}","releases_url":"https://api.github.com/repos/bbc/programmes-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/bbc/programmes-frontend/deployments","created_at":"2017-03-17T10:19:20Z","updated_at":"2018-04-25T15:27:48Z","pushed_at":"2018-04-25T15:27:49Z","git_url":"git://github.com/bbc/programmes-frontend.git","ssh_url":"git@github.com:bbc/programmes-frontend.git","clone_url":"https://github.com/bbc/programmes-frontend.git","svn_url":"https://github.com/bbc/programmes-frontend","homepage":"","size":3080,"stargazers_count":13,"watchers_count":13,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":4,"open_issues":3,"watchers":13,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/bbc/programmes-frontend/pulls/528"},"html":{"href":"https://github.com/bbc/programmes-frontend/pull/528"},"issue":{"href":"https://api.github.com/repos/bbc/programmes-frontend/issues/528"},"comments":{"href":"https://api.github.com/repos/bbc/programmes-frontend/issues/528/comments"},"review_comments":{"href":"https://api.github.com/repos/bbc/programmes-frontend/pulls/528/comments"},"review_comment":{"href":"https://api.github.com/repos/bbc/programmes-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bbc/programmes-frontend/pulls/528/commits"},"statuses":{"href":"https://api.github.com/repos/bbc/programmes-frontend/statuses/bf211b1fa82df318f2431b15492e2e641fd8999a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"votemike"}}