{"action":"created","comment":{"url":"https://api.github.com/repos/ckr123/Hovedopgave/pulls/comments/45973216","id":45973216,"diff_hunk":"@@ -0,0 +1,26 @@\n+<?php\n+\n+namespace Tests\\Php\\Controllers;\n+\n+use App\\Http\\Controllers\\ElasticController;\n+use App\\Helpers;\n+\n+class ElasticControllerTest extends \\PHPUnit_Framework_TestCase\n+{\n+    private function setUpController() {\n+       return $elasticControllerMock = $this->getMockBuilder('ElasticController')\n+            ->setMethods(array('get', 'index'))\n+            ->getMock();\n+    }\n+\n+    public function testGet() {\n+       $returnArray = [];\n+       $controllerMock = $this->setUpController(); \n+       $controllerMock->expects($this->any())\n+           ->method('get')\n+           ->with('index', 'type')\n+           ->will($this->returnValue($returnArray));\n+\n+       $this->assertEquals(0, count($returnArray));","path":"tests/php/controllers/ElasticControllerTest.php","position":null,"original_position":24,"commit_id":"5318211722a06d4f335d0b05d6ddd55e090819df","original_commit_id":"f7c50ebdd9ba91e22e272aa1373a67b662d72ece","user":{"login":"ckr123","id":5929074,"avatar_url":"https://avatars.githubusercontent.com/u/5929074?v=3","gravatar_id":"","url":"https://api.github.com/users/ckr123","html_url":"https://github.com/ckr123","followers_url":"https://api.github.com/users/ckr123/followers","following_url":"https://api.github.com/users/ckr123/following{/other_user}","gists_url":"https://api.github.com/users/ckr123/gists{/gist_id}","starred_url":"https://api.github.com/users/ckr123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckr123/subscriptions","organizations_url":"https://api.github.com/users/ckr123/orgs","repos_url":"https://api.github.com/users/ckr123/repos","events_url":"https://api.github.com/users/ckr123/events{/privacy}","received_events_url":"https://api.github.com/users/ckr123/received_events","type":"User","site_admin":false},"body":"fixed","created_at":"2015-11-26T12:25:50Z","updated_at":"2015-11-26T12:25:50Z","html_url":"https://github.com/ckr123/Hovedopgave/pull/32#discussion_r45973216","pull_request_url":"https://api.github.com/repos/ckr123/Hovedopgave/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/ckr123/Hovedopgave/pulls/comments/45973216"},"html":{"href":"https://github.com/ckr123/Hovedopgave/pull/32#discussion_r45973216"},"pull_request":{"href":"https://api.github.com/repos/ckr123/Hovedopgave/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/ckr123/Hovedopgave/pulls/32","id":51774572,"html_url":"https://github.com/ckr123/Hovedopgave/pull/32","diff_url":"https://github.com/ckr123/Hovedopgave/pull/32.diff","patch_url":"https://github.com/ckr123/Hovedopgave/pull/32.patch","issue_url":"https://api.github.com/repos/ckr123/Hovedopgave/issues/32","number":32,"state":"open","locked":false,"title":"Feat es get index","user":{"login":"ckr123","id":5929074,"avatar_url":"https://avatars.githubusercontent.com/u/5929074?v=3","gravatar_id":"","url":"https://api.github.com/users/ckr123","html_url":"https://github.com/ckr123","followers_url":"https://api.github.com/users/ckr123/followers","following_url":"https://api.github.com/users/ckr123/following{/other_user}","gists_url":"https://api.github.com/users/ckr123/gists{/gist_id}","starred_url":"https://api.github.com/users/ckr123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckr123/subscriptions","organizations_url":"https://api.github.com/users/ckr123/orgs","repos_url":"https://api.github.com/users/ckr123/repos","events_url":"https://api.github.com/users/ckr123/events{/privacy}","received_events_url":"https://api.github.com/users/ckr123/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-25T10:13:03Z","updated_at":"2015-11-26T12:25:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2356033456fdb8412de73a60224272f64b269337","assignee":{"login":"Munk91","id":5628524,"avatar_url":"https://avatars.githubusercontent.com/u/5628524?v=3","gravatar_id":"","url":"https://api.github.com/users/Munk91","html_url":"https://github.com/Munk91","followers_url":"https://api.github.com/users/Munk91/followers","following_url":"https://api.github.com/users/Munk91/following{/other_user}","gists_url":"https://api.github.com/users/Munk91/gists{/gist_id}","starred_url":"https://api.github.com/users/Munk91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Munk91/subscriptions","organizations_url":"https://api.github.com/users/Munk91/orgs","repos_url":"https://api.github.com/users/Munk91/repos","events_url":"https://api.github.com/users/Munk91/events{/privacy}","received_events_url":"https://api.github.com/users/Munk91/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/ckr123/Hovedopgave/pulls/32/commits","review_comments_url":"https://api.github.com/repos/ckr123/Hovedopgave/pulls/32/comments","review_comment_url":"https://api.github.com/repos/ckr123/Hovedopgave/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ckr123/Hovedopgave/issues/32/comments","statuses_url":"https://api.github.com/repos/ckr123/Hovedopgave/statuses/5318211722a06d4f335d0b05d6ddd55e090819df","head":{"label":"ckr123:feat-es-get-index","ref":"feat-es-get-index","sha":"5318211722a06d4f335d0b05d6ddd55e090819df","user":{"login":"ckr123","id":5929074,"avatar_url":"https://avatars.githubusercontent.com/u/5929074?v=3","gravatar_id":"","url":"https://api.github.com/users/ckr123","html_url":"https://github.com/ckr123","followers_url":"https://api.github.com/users/ckr123/followers","following_url":"https://api.github.com/users/ckr123/following{/other_user}","gists_url":"https://api.github.com/users/ckr123/gists{/gist_id}","starred_url":"https://api.github.com/users/ckr123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckr123/subscriptions","organizations_url":"https://api.github.com/users/ckr123/orgs","repos_url":"https://api.github.com/users/ckr123/repos","events_url":"https://api.github.com/users/ckr123/events{/privacy}","received_events_url":"https://api.github.com/users/ckr123/received_events","type":"User","site_admin":false},"repo":{"id":45062896,"name":"Hovedopgave","full_name":"ckr123/Hovedopgave","owner":{"login":"ckr123","id":5929074,"avatar_url":"https://avatars.githubusercontent.com/u/5929074?v=3","gravatar_id":"","url":"https://api.github.com/users/ckr123","html_url":"https://github.com/ckr123","followers_url":"https://api.github.com/users/ckr123/followers","following_url":"https://api.github.com/users/ckr123/following{/other_user}","gists_url":"https://api.github.com/users/ckr123/gists{/gist_id}","starred_url":"https://api.github.com/users/ckr123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckr123/subscriptions","organizations_url":"https://api.github.com/users/ckr123/orgs","repos_url":"https://api.github.com/users/ckr123/repos","events_url":"https://api.github.com/users/ckr123/events{/privacy}","received_events_url":"https://api.github.com/users/ckr123/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ckr123/Hovedopgave","description":"","fork":false,"url":"https://api.github.com/repos/ckr123/Hovedopgave","forks_url":"https://api.github.com/repos/ckr123/Hovedopgave/forks","keys_url":"https://api.github.com/repos/ckr123/Hovedopgave/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ckr123/Hovedopgave/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ckr123/Hovedopgave/teams","hooks_url":"https://api.github.com/repos/ckr123/Hovedopgave/hooks","issue_events_url":"https://api.github.com/repos/ckr123/Hovedopgave/issues/events{/number}","events_url":"https://api.github.com/repos/ckr123/Hovedopgave/events","assignees_url":"https://api.github.com/repos/ckr123/Hovedopgave/assignees{/user}","branches_url":"https://api.github.com/repos/ckr123/Hovedopgave/branches{/branch}","tags_url":"https://api.github.com/repos/ckr123/Hovedopgave/tags","blobs_url":"https://api.github.com/repos/ckr123/Hovedopgave/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ckr123/Hovedopgave/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ckr123/Hovedopgave/git/refs{/sha}","trees_url":"https://api.github.com/repos/ckr123/Hovedopgave/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ckr123/Hovedopgave/statuses/{sha}","languages_url":"https://api.github.com/repos/ckr123/Hovedopgave/languages","stargazers_url":"https://api.github.com/repos/ckr123/Hovedopgave/stargazers","contributors_url":"https://api.github.com/repos/ckr123/Hovedopgave/contributors","subscribers_url":"https://api.github.com/repos/ckr123/Hovedopgave/subscribers","subscription_url":"https://api.github.com/repos/ckr123/Hovedopgave/subscription","commits_url":"https://api.github.com/repos/ckr123/Hovedopgave/commits{/sha}","git_commits_url":"https://api.github.com/repos/ckr123/Hovedopgave/git/commits{/sha}","comments_url":"https://api.github.com/repos/ckr123/Hovedopgave/comments{/number}","issue_comment_url":"https://api.github.com/repos/ckr123/Hovedopgave/issues/comments{/number}","contents_url":"https://api.github.com/repos/ckr123/Hovedopgave/contents/{+path}","compare_url":"https://api.github.com/repos/ckr123/Hovedopgave/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ckr123/Hovedopgave/merges","archive_url":"https://api.github.com/repos/ckr123/Hovedopgave/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ckr123/Hovedopgave/downloads","issues_url":"https://api.github.com/repos/ckr123/Hovedopgave/issues{/number}","pulls_url":"https://api.github.com/repos/ckr123/Hovedopgave/pulls{/number}","milestones_url":"https://api.github.com/repos/ckr123/Hovedopgave/milestones{/number}","notifications_url":"https://api.github.com/repos/ckr123/Hovedopgave/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ckr123/Hovedopgave/labels{/name}","releases_url":"https://api.github.com/repos/ckr123/Hovedopgave/releases{/id}","created_at":"2015-10-27T18:54:01Z","updated_at":"2015-11-04T13:30:51Z","pushed_at":"2015-11-26T12:25:41Z","git_url":"git://github.com/ckr123/Hovedopgave.git","ssh_url":"git@github.com:ckr123/Hovedopgave.git","clone_url":"https://github.com/ckr123/Hovedopgave.git","svn_url":"https://github.com/ckr123/Hovedopgave","homepage":null,"size":15742,"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":2,"forks":1,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"ckr123:master","ref":"master","sha":"45584022b85a363d7cdfcc162fe47829d67a8ca0","user":{"login":"ckr123","id":5929074,"avatar_url":"https://avatars.githubusercontent.com/u/5929074?v=3","gravatar_id":"","url":"https://api.github.com/users/ckr123","html_url":"https://github.com/ckr123","followers_url":"https://api.github.com/users/ckr123/followers","following_url":"https://api.github.com/users/ckr123/following{/other_user}","gists_url":"https://api.github.com/users/ckr123/gists{/gist_id}","starred_url":"https://api.github.com/users/ckr123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckr123/subscriptions","organizations_url":"https://api.github.com/users/ckr123/orgs","repos_url":"https://api.github.com/users/ckr123/repos","events_url":"https://api.github.com/users/ckr123/events{/privacy}","received_events_url":"https://api.github.com/users/ckr123/received_events","type":"User","site_admin":false},"repo":{"id":45062896,"name":"Hovedopgave","full_name":"ckr123/Hovedopgave","owner":{"login":"ckr123","id":5929074,"avatar_url":"https://avatars.githubusercontent.com/u/5929074?v=3","gravatar_id":"","url":"https://api.github.com/users/ckr123","html_url":"https://github.com/ckr123","followers_url":"https://api.github.com/users/ckr123/followers","following_url":"https://api.github.com/users/ckr123/following{/other_user}","gists_url":"https://api.github.com/users/ckr123/gists{/gist_id}","starred_url":"https://api.github.com/users/ckr123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckr123/subscriptions","organizations_url":"https://api.github.com/users/ckr123/orgs","repos_url":"https://api.github.com/users/ckr123/repos","events_url":"https://api.github.com/users/ckr123/events{/privacy}","received_events_url":"https://api.github.com/users/ckr123/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ckr123/Hovedopgave","description":"","fork":false,"url":"https://api.github.com/repos/ckr123/Hovedopgave","forks_url":"https://api.github.com/repos/ckr123/Hovedopgave/forks","keys_url":"https://api.github.com/repos/ckr123/Hovedopgave/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ckr123/Hovedopgave/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ckr123/Hovedopgave/teams","hooks_url":"https://api.github.com/repos/ckr123/Hovedopgave/hooks","issue_events_url":"https://api.github.com/repos/ckr123/Hovedopgave/issues/events{/number}","events_url":"https://api.github.com/repos/ckr123/Hovedopgave/events","assignees_url":"https://api.github.com/repos/ckr123/Hovedopgave/assignees{/user}","branches_url":"https://api.github.com/repos/ckr123/Hovedopgave/branches{/branch}","tags_url":"https://api.github.com/repos/ckr123/Hovedopgave/tags","blobs_url":"https://api.github.com/repos/ckr123/Hovedopgave/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ckr123/Hovedopgave/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ckr123/Hovedopgave/git/refs{/sha}","trees_url":"https://api.github.com/repos/ckr123/Hovedopgave/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ckr123/Hovedopgave/statuses/{sha}","languages_url":"https://api.github.com/repos/ckr123/Hovedopgave/languages","stargazers_url":"https://api.github.com/repos/ckr123/Hovedopgave/stargazers","contributors_url":"https://api.github.com/repos/ckr123/Hovedopgave/contributors","subscribers_url":"https://api.github.com/repos/ckr123/Hovedopgave/subscribers","subscription_url":"https://api.github.com/repos/ckr123/Hovedopgave/subscription","commits_url":"https://api.github.com/repos/ckr123/Hovedopgave/commits{/sha}","git_commits_url":"https://api.github.com/repos/ckr123/Hovedopgave/git/commits{/sha}","comments_url":"https://api.github.com/repos/ckr123/Hovedopgave/comments{/number}","issue_comment_url":"https://api.github.com/repos/ckr123/Hovedopgave/issues/comments{/number}","contents_url":"https://api.github.com/repos/ckr123/Hovedopgave/contents/{+path}","compare_url":"https://api.github.com/repos/ckr123/Hovedopgave/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ckr123/Hovedopgave/merges","archive_url":"https://api.github.com/repos/ckr123/Hovedopgave/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ckr123/Hovedopgave/downloads","issues_url":"https://api.github.com/repos/ckr123/Hovedopgave/issues{/number}","pulls_url":"https://api.github.com/repos/ckr123/Hovedopgave/pulls{/number}","milestones_url":"https://api.github.com/repos/ckr123/Hovedopgave/milestones{/number}","notifications_url":"https://api.github.com/repos/ckr123/Hovedopgave/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ckr123/Hovedopgave/labels{/name}","releases_url":"https://api.github.com/repos/ckr123/Hovedopgave/releases{/id}","created_at":"2015-10-27T18:54:01Z","updated_at":"2015-11-04T13:30:51Z","pushed_at":"2015-11-26T12:25:41Z","git_url":"git://github.com/ckr123/Hovedopgave.git","ssh_url":"git@github.com:ckr123/Hovedopgave.git","clone_url":"https://github.com/ckr123/Hovedopgave.git","svn_url":"https://github.com/ckr123/Hovedopgave","homepage":null,"size":15742,"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":2,"forks":1,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ckr123/Hovedopgave/pulls/32"},"html":{"href":"https://github.com/ckr123/Hovedopgave/pull/32"},"issue":{"href":"https://api.github.com/repos/ckr123/Hovedopgave/issues/32"},"comments":{"href":"https://api.github.com/repos/ckr123/Hovedopgave/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/ckr123/Hovedopgave/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/ckr123/Hovedopgave/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ckr123/Hovedopgave/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/ckr123/Hovedopgave/statuses/5318211722a06d4f335d0b05d6ddd55e090819df"}}}}