{"action":"created","comment":{"url":"https://api.github.com/repos/igara/syonet/pulls/comments/50704173","id":50704173,"diff_hunk":"@@ -0,0 +1,206 @@\n+<?php\n+\n+use App\\Http\\Controllers\\Root\\RootController;\n+use Illuminate\\Http\\Request;\n+\n+/**\n+ * RootControllerクラスのテストを行う\n+ */\n+class RootControllerTest extends TestCase {\n+\n+    /**\n+     * topActionで\n+     * アサイン情報にtabbarParamsが存在することを確認\n+     * \n+     */\n+    public function testTopActionIsKeyTabbarParams() {\n+        $rootController = new RootController;\n+        $request = new Request();\n+        $topAction = $rootController->topAction($request);\n+        // Viewオブジェクトにアサインされている情報を取得する。\n+        $getAssignData = $topAction->getData();\n+        // 失敗時はエラーメッセージが表示される\n+        $this->assertArrayHasKey('tabbarParams', $getAssignData, 'error:アサイン情報としてtabbarParamsが存在しない');\n+    }\n+\n+    /**\n+     * topActionで\n+     * アサイン情報のtabbarParamsの中にhomeがあることを確認\n+     * \n+     */\n+    public function testTopActionIsKeyHome() {\n+        $rootController = new RootController;\n+        $request = new Request();\n+        $topAction = $rootController->topAction($request);\n+        // Viewオブジェクトにアサインされている情報を取得する。\n+        $getAssignData = $topAction->getData();\n+        // 失敗時はエラーメッセージが表示される\n+        $this->assertArrayHasKey('home', $getAssignData['tabbarParams'], 'error:アサイン情報としてtabbarParamsにhomeが存在しない');\n+    }\n+\n+    /**\n+     * topActionで\n+     * アサイン情報のtabbarParamsの中にcontentsがあることを確認\n+     * \n+     */\n+    public function testTopActionIsKeyContents() {\n+        $rootController = new RootController;\n+        $request = new Request();\n+        $topAction = $rootController->topAction($request);\n+        // Viewオブジェクトにアサインされている情報を取得する。\n+        $getAssignData = $topAction->getData();\n+        // 失敗時はエラーメッセージが表示される\n+        $this->assertArrayHasKey('contents', $getAssignData['tabbarParams'], 'error:アサイン情報としてtabbarParamsにcontentsが存在しない');\n+    }\n+\n+    /**\n+     * topActionで\n+     * アサイン情報のtabbarParamsの中にdocsがあることを確認\n+     * \n+     */\n+    public function testTopActionIsKeyDocs() {\n+        $rootController = new RootController;\n+        $request = new Request();\n+        $topAction = $rootController->topAction($request);\n+        // Viewオブジェクトにアサインされている情報を取得する。\n+        $getAssignData = $topAction->getData();\n+        // 失敗時はエラーメッセージが表示される\n+        $this->assertArrayHasKey('docs', $getAssignData['tabbarParams'], 'error:アサイン情報としてtabbarParamsにdocsが存在しない');\n+    }\n+\n+    /**\n+     * topActionで\n+     * アサイン情報のtabbarParamsの中にdevがあることを確認\n+     * \n+     */\n+    public function testTopActionIsKeyDev() {","path":"tests/php/Controllers/Root/RootControllerTest.php","position":76,"original_position":76,"commit_id":"283c086dd92f92c190f4feb20139657b94af3dfd","original_commit_id":"283c086dd92f92c190f4feb20139657b94af3dfd","user":{"login":"igara","id":7006562,"avatar_url":"https://avatars.githubusercontent.com/u/7006562?v=3","gravatar_id":"","url":"https://api.github.com/users/igara","html_url":"https://github.com/igara","followers_url":"https://api.github.com/users/igara/followers","following_url":"https://api.github.com/users/igara/following{/other_user}","gists_url":"https://api.github.com/users/igara/gists{/gist_id}","starred_url":"https://api.github.com/users/igara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igara/subscriptions","organizations_url":"https://api.github.com/users/igara/orgs","repos_url":"https://api.github.com/users/igara/repos","events_url":"https://api.github.com/users/igara/events{/privacy}","received_events_url":"https://api.github.com/users/igara/received_events","type":"User","site_admin":false},"body":"__[code_sniffer]__\n* Opening brace should be on a new line","created_at":"2016-01-25T15:07:46Z","updated_at":"2016-01-25T15:07:46Z","html_url":"https://github.com/igara/syonet/pull/48#discussion_r50704173","pull_request_url":"https://api.github.com/repos/igara/syonet/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/igara/syonet/pulls/comments/50704173"},"html":{"href":"https://github.com/igara/syonet/pull/48#discussion_r50704173"},"pull_request":{"href":"https://api.github.com/repos/igara/syonet/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/igara/syonet/pulls/48","id":57082750,"html_url":"https://github.com/igara/syonet/pull/48","diff_url":"https://github.com/igara/syonet/pull/48.diff","patch_url":"https://github.com/igara/syonet/pull/48.patch","issue_url":"https://api.github.com/repos/igara/syonet/issues/48","number":48,"state":"open","locked":false,"title":"#46 RootControllerのunitテスト","user":{"login":"igara","id":7006562,"avatar_url":"https://avatars.githubusercontent.com/u/7006562?v=3","gravatar_id":"","url":"https://api.github.com/users/igara","html_url":"https://github.com/igara","followers_url":"https://api.github.com/users/igara/followers","following_url":"https://api.github.com/users/igara/following{/other_user}","gists_url":"https://api.github.com/users/igara/gists{/gist_id}","starred_url":"https://api.github.com/users/igara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igara/subscriptions","organizations_url":"https://api.github.com/users/igara/orgs","repos_url":"https://api.github.com/users/igara/repos","events_url":"https://api.github.com/users/igara/events{/privacy}","received_events_url":"https://api.github.com/users/igara/received_events","type":"User","site_admin":false},"body":"* アサインされる情報として下記\r\n    * tabbarParams\r\n    * tabbarStatus のテストを行う","created_at":"2016-01-25T15:07:39Z","updated_at":"2016-01-25T15:07:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"59b800024555a5316cb60b6d98cb019037a0c142","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/igara/syonet/pulls/48/commits","review_comments_url":"https://api.github.com/repos/igara/syonet/pulls/48/comments","review_comment_url":"https://api.github.com/repos/igara/syonet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/igara/syonet/issues/48/comments","statuses_url":"https://api.github.com/repos/igara/syonet/statuses/283c086dd92f92c190f4feb20139657b94af3dfd","head":{"label":"igara:46_unit_test","ref":"46_unit_test","sha":"283c086dd92f92c190f4feb20139657b94af3dfd","user":{"login":"igara","id":7006562,"avatar_url":"https://avatars.githubusercontent.com/u/7006562?v=3","gravatar_id":"","url":"https://api.github.com/users/igara","html_url":"https://github.com/igara","followers_url":"https://api.github.com/users/igara/followers","following_url":"https://api.github.com/users/igara/following{/other_user}","gists_url":"https://api.github.com/users/igara/gists{/gist_id}","starred_url":"https://api.github.com/users/igara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igara/subscriptions","organizations_url":"https://api.github.com/users/igara/orgs","repos_url":"https://api.github.com/users/igara/repos","events_url":"https://api.github.com/users/igara/events{/privacy}","received_events_url":"https://api.github.com/users/igara/received_events","type":"User","site_admin":false},"repo":{"id":44738996,"name":"syonet","full_name":"igara/syonet","owner":{"login":"igara","id":7006562,"avatar_url":"https://avatars.githubusercontent.com/u/7006562?v=3","gravatar_id":"","url":"https://api.github.com/users/igara","html_url":"https://github.com/igara","followers_url":"https://api.github.com/users/igara/followers","following_url":"https://api.github.com/users/igara/following{/other_user}","gists_url":"https://api.github.com/users/igara/gists{/gist_id}","starred_url":"https://api.github.com/users/igara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igara/subscriptions","organizations_url":"https://api.github.com/users/igara/orgs","repos_url":"https://api.github.com/users/igara/repos","events_url":"https://api.github.com/users/igara/events{/privacy}","received_events_url":"https://api.github.com/users/igara/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/igara/syonet","description":"syonet","fork":false,"url":"https://api.github.com/repos/igara/syonet","forks_url":"https://api.github.com/repos/igara/syonet/forks","keys_url":"https://api.github.com/repos/igara/syonet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/igara/syonet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/igara/syonet/teams","hooks_url":"https://api.github.com/repos/igara/syonet/hooks","issue_events_url":"https://api.github.com/repos/igara/syonet/issues/events{/number}","events_url":"https://api.github.com/repos/igara/syonet/events","assignees_url":"https://api.github.com/repos/igara/syonet/assignees{/user}","branches_url":"https://api.github.com/repos/igara/syonet/branches{/branch}","tags_url":"https://api.github.com/repos/igara/syonet/tags","blobs_url":"https://api.github.com/repos/igara/syonet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/igara/syonet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/igara/syonet/git/refs{/sha}","trees_url":"https://api.github.com/repos/igara/syonet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/igara/syonet/statuses/{sha}","languages_url":"https://api.github.com/repos/igara/syonet/languages","stargazers_url":"https://api.github.com/repos/igara/syonet/stargazers","contributors_url":"https://api.github.com/repos/igara/syonet/contributors","subscribers_url":"https://api.github.com/repos/igara/syonet/subscribers","subscription_url":"https://api.github.com/repos/igara/syonet/subscription","commits_url":"https://api.github.com/repos/igara/syonet/commits{/sha}","git_commits_url":"https://api.github.com/repos/igara/syonet/git/commits{/sha}","comments_url":"https://api.github.com/repos/igara/syonet/comments{/number}","issue_comment_url":"https://api.github.com/repos/igara/syonet/issues/comments{/number}","contents_url":"https://api.github.com/repos/igara/syonet/contents/{+path}","compare_url":"https://api.github.com/repos/igara/syonet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/igara/syonet/merges","archive_url":"https://api.github.com/repos/igara/syonet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/igara/syonet/downloads","issues_url":"https://api.github.com/repos/igara/syonet/issues{/number}","pulls_url":"https://api.github.com/repos/igara/syonet/pulls{/number}","milestones_url":"https://api.github.com/repos/igara/syonet/milestones{/number}","notifications_url":"https://api.github.com/repos/igara/syonet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/igara/syonet/labels{/name}","releases_url":"https://api.github.com/repos/igara/syonet/releases{/id}","deployments_url":"https://api.github.com/repos/igara/syonet/deployments","created_at":"2015-10-22T10:42:24Z","updated_at":"2016-01-21T11:42:56Z","pushed_at":"2016-01-25T15:07:39Z","git_url":"git://github.com/igara/syonet.git","ssh_url":"git@github.com:igara/syonet.git","clone_url":"https://github.com/igara/syonet.git","svn_url":"https://github.com/igara/syonet","homepage":"https://syonet.work","size":621,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":9,"forks":1,"open_issues":9,"watchers":1,"default_branch":"master"}},"base":{"label":"igara:master","ref":"master","sha":"1b68cc8ab7b3299e475bb305bb606c0ffecbe83b","user":{"login":"igara","id":7006562,"avatar_url":"https://avatars.githubusercontent.com/u/7006562?v=3","gravatar_id":"","url":"https://api.github.com/users/igara","html_url":"https://github.com/igara","followers_url":"https://api.github.com/users/igara/followers","following_url":"https://api.github.com/users/igara/following{/other_user}","gists_url":"https://api.github.com/users/igara/gists{/gist_id}","starred_url":"https://api.github.com/users/igara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igara/subscriptions","organizations_url":"https://api.github.com/users/igara/orgs","repos_url":"https://api.github.com/users/igara/repos","events_url":"https://api.github.com/users/igara/events{/privacy}","received_events_url":"https://api.github.com/users/igara/received_events","type":"User","site_admin":false},"repo":{"id":44738996,"name":"syonet","full_name":"igara/syonet","owner":{"login":"igara","id":7006562,"avatar_url":"https://avatars.githubusercontent.com/u/7006562?v=3","gravatar_id":"","url":"https://api.github.com/users/igara","html_url":"https://github.com/igara","followers_url":"https://api.github.com/users/igara/followers","following_url":"https://api.github.com/users/igara/following{/other_user}","gists_url":"https://api.github.com/users/igara/gists{/gist_id}","starred_url":"https://api.github.com/users/igara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igara/subscriptions","organizations_url":"https://api.github.com/users/igara/orgs","repos_url":"https://api.github.com/users/igara/repos","events_url":"https://api.github.com/users/igara/events{/privacy}","received_events_url":"https://api.github.com/users/igara/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/igara/syonet","description":"syonet","fork":false,"url":"https://api.github.com/repos/igara/syonet","forks_url":"https://api.github.com/repos/igara/syonet/forks","keys_url":"https://api.github.com/repos/igara/syonet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/igara/syonet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/igara/syonet/teams","hooks_url":"https://api.github.com/repos/igara/syonet/hooks","issue_events_url":"https://api.github.com/repos/igara/syonet/issues/events{/number}","events_url":"https://api.github.com/repos/igara/syonet/events","assignees_url":"https://api.github.com/repos/igara/syonet/assignees{/user}","branches_url":"https://api.github.com/repos/igara/syonet/branches{/branch}","tags_url":"https://api.github.com/repos/igara/syonet/tags","blobs_url":"https://api.github.com/repos/igara/syonet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/igara/syonet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/igara/syonet/git/refs{/sha}","trees_url":"https://api.github.com/repos/igara/syonet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/igara/syonet/statuses/{sha}","languages_url":"https://api.github.com/repos/igara/syonet/languages","stargazers_url":"https://api.github.com/repos/igara/syonet/stargazers","contributors_url":"https://api.github.com/repos/igara/syonet/contributors","subscribers_url":"https://api.github.com/repos/igara/syonet/subscribers","subscription_url":"https://api.github.com/repos/igara/syonet/subscription","commits_url":"https://api.github.com/repos/igara/syonet/commits{/sha}","git_commits_url":"https://api.github.com/repos/igara/syonet/git/commits{/sha}","comments_url":"https://api.github.com/repos/igara/syonet/comments{/number}","issue_comment_url":"https://api.github.com/repos/igara/syonet/issues/comments{/number}","contents_url":"https://api.github.com/repos/igara/syonet/contents/{+path}","compare_url":"https://api.github.com/repos/igara/syonet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/igara/syonet/merges","archive_url":"https://api.github.com/repos/igara/syonet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/igara/syonet/downloads","issues_url":"https://api.github.com/repos/igara/syonet/issues{/number}","pulls_url":"https://api.github.com/repos/igara/syonet/pulls{/number}","milestones_url":"https://api.github.com/repos/igara/syonet/milestones{/number}","notifications_url":"https://api.github.com/repos/igara/syonet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/igara/syonet/labels{/name}","releases_url":"https://api.github.com/repos/igara/syonet/releases{/id}","deployments_url":"https://api.github.com/repos/igara/syonet/deployments","created_at":"2015-10-22T10:42:24Z","updated_at":"2016-01-21T11:42:56Z","pushed_at":"2016-01-25T15:07:39Z","git_url":"git://github.com/igara/syonet.git","ssh_url":"git@github.com:igara/syonet.git","clone_url":"https://github.com/igara/syonet.git","svn_url":"https://github.com/igara/syonet","homepage":"https://syonet.work","size":621,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":9,"forks":1,"open_issues":9,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/igara/syonet/pulls/48"},"html":{"href":"https://github.com/igara/syonet/pull/48"},"issue":{"href":"https://api.github.com/repos/igara/syonet/issues/48"},"comments":{"href":"https://api.github.com/repos/igara/syonet/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/igara/syonet/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/igara/syonet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/igara/syonet/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/igara/syonet/statuses/283c086dd92f92c190f4feb20139657b94af3dfd"}}}}