{"action":"created","comment":{"url":"https://api.github.com/repos/Codeception/Codeception/pulls/comments/36570988","id":36570988,"diff_hunk":"@@ -71,14 +73,25 @@ public function _initialize()\n         if (isset($applicationConfig['module_listener_options']['config_cache_enabled'])) {\n             $applicationConfig['module_listener_options']['config_cache_enabled'] = false;\n         }\n-        Console::overrideIsConsole(false);\n-    }\n+        Console::overrideIsConsole(false); \n+\n+        $this->application = Application::init($this->applicationConfig);  \n+        $this->serviceLocator = $this->application->getServiceManager();\n+        if($this->serviceLocator->has('Doctrine\\ORM\\EntityManager')) {\n+            $this->entityManager =  $this->serviceLocator->get('Doctrine\\ORM\\EntityManager');     \n+        }          \n+    }  \n \n     public function _before(TestCase $test)\n-    {\n-        $this->application = Application::init($this->applicationConfig);\n+    {      \n+        $this->application = Application::init($this->applicationConfig);               \n+        $this->serviceLocator = $this->application->getServiceManager();\n+        if($this->serviceLocator->has('Doctrine\\ORM\\EntityManager')) {\n+            $this->entityManager =  $this->serviceLocator->get('Doctrine\\ORM\\EntityManager');     ","path":"src/Codeception/Module/ZF2.php","position":107,"original_position":107,"commit_id":"92609767c825206699aafd8d5496684c95e58cf2","original_commit_id":"92609767c825206699aafd8d5496684c95e58cf2","user":{"login":"DavertMik","id":220264,"avatar_url":"https://avatars.githubusercontent.com/u/220264?v=3","gravatar_id":"","url":"https://api.github.com/users/DavertMik","html_url":"https://github.com/DavertMik","followers_url":"https://api.github.com/users/DavertMik/followers","following_url":"https://api.github.com/users/DavertMik/following{/other_user}","gists_url":"https://api.github.com/users/DavertMik/gists{/gist_id}","starred_url":"https://api.github.com/users/DavertMik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavertMik/subscriptions","organizations_url":"https://api.github.com/users/DavertMik/orgs","repos_url":"https://api.github.com/users/DavertMik/repos","events_url":"https://api.github.com/users/DavertMik/events{/privacy}","received_events_url":"https://api.github.com/users/DavertMik/received_events","type":"User","site_admin":false},"body":"why do you ever need this `entityManager` to be set before each test? Is that used somehow anywhere? I don't see it.","created_at":"2015-08-07T23:52:17Z","updated_at":"2015-08-07T23:52:17Z","html_url":"https://github.com/Codeception/Codeception/pull/2232#discussion_r36570988","pull_request_url":"https://api.github.com/repos/Codeception/Codeception/pulls/2232","_links":{"self":{"href":"https://api.github.com/repos/Codeception/Codeception/pulls/comments/36570988"},"html":{"href":"https://github.com/Codeception/Codeception/pull/2232#discussion_r36570988"},"pull_request":{"href":"https://api.github.com/repos/Codeception/Codeception/pulls/2232"}}},"pull_request":{"url":"https://api.github.com/repos/Codeception/Codeception/pulls/2232","id":41415735,"html_url":"https://github.com/Codeception/Codeception/pull/2232","diff_url":"https://github.com/Codeception/Codeception/pull/2232.diff","patch_url":"https://github.com/Codeception/Codeception/pull/2232.patch","issue_url":"https://api.github.com/repos/Codeception/Codeception/issues/2232","number":2232,"state":"open","locked":false,"title":"Added grabServiceFromContainer function","user":{"login":"InVeX","id":1172241,"avatar_url":"https://avatars.githubusercontent.com/u/1172241?v=3","gravatar_id":"","url":"https://api.github.com/users/InVeX","html_url":"https://github.com/InVeX","followers_url":"https://api.github.com/users/InVeX/followers","following_url":"https://api.github.com/users/InVeX/following{/other_user}","gists_url":"https://api.github.com/users/InVeX/gists{/gist_id}","starred_url":"https://api.github.com/users/InVeX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InVeX/subscriptions","organizations_url":"https://api.github.com/users/InVeX/orgs","repos_url":"https://api.github.com/users/InVeX/repos","events_url":"https://api.github.com/users/InVeX/events{/privacy}","received_events_url":"https://api.github.com/users/InVeX/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-02T10:30:47Z","updated_at":"2015-08-07T23:52:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ef10df2e6a62280312d557834038162555bcc8a9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Codeception/Codeception/pulls/2232/commits","review_comments_url":"https://api.github.com/repos/Codeception/Codeception/pulls/2232/comments","review_comment_url":"https://api.github.com/repos/Codeception/Codeception/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Codeception/Codeception/issues/2232/comments","statuses_url":"https://api.github.com/repos/Codeception/Codeception/statuses/92609767c825206699aafd8d5496684c95e58cf2","head":{"label":"InVeX:2.1","ref":"2.1","sha":"92609767c825206699aafd8d5496684c95e58cf2","user":{"login":"InVeX","id":1172241,"avatar_url":"https://avatars.githubusercontent.com/u/1172241?v=3","gravatar_id":"","url":"https://api.github.com/users/InVeX","html_url":"https://github.com/InVeX","followers_url":"https://api.github.com/users/InVeX/followers","following_url":"https://api.github.com/users/InVeX/following{/other_user}","gists_url":"https://api.github.com/users/InVeX/gists{/gist_id}","starred_url":"https://api.github.com/users/InVeX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InVeX/subscriptions","organizations_url":"https://api.github.com/users/InVeX/orgs","repos_url":"https://api.github.com/users/InVeX/repos","events_url":"https://api.github.com/users/InVeX/events{/privacy}","received_events_url":"https://api.github.com/users/InVeX/received_events","type":"User","site_admin":false},"repo":{"id":40075814,"name":"Codeception","full_name":"InVeX/Codeception","owner":{"login":"InVeX","id":1172241,"avatar_url":"https://avatars.githubusercontent.com/u/1172241?v=3","gravatar_id":"","url":"https://api.github.com/users/InVeX","html_url":"https://github.com/InVeX","followers_url":"https://api.github.com/users/InVeX/followers","following_url":"https://api.github.com/users/InVeX/following{/other_user}","gists_url":"https://api.github.com/users/InVeX/gists{/gist_id}","starred_url":"https://api.github.com/users/InVeX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InVeX/subscriptions","organizations_url":"https://api.github.com/users/InVeX/orgs","repos_url":"https://api.github.com/users/InVeX/repos","events_url":"https://api.github.com/users/InVeX/events{/privacy}","received_events_url":"https://api.github.com/users/InVeX/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/InVeX/Codeception","description":"Full-stack testing PHP framework","fork":true,"url":"https://api.github.com/repos/InVeX/Codeception","forks_url":"https://api.github.com/repos/InVeX/Codeception/forks","keys_url":"https://api.github.com/repos/InVeX/Codeception/keys{/key_id}","collaborators_url":"https://api.github.com/repos/InVeX/Codeception/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/InVeX/Codeception/teams","hooks_url":"https://api.github.com/repos/InVeX/Codeception/hooks","issue_events_url":"https://api.github.com/repos/InVeX/Codeception/issues/events{/number}","events_url":"https://api.github.com/repos/InVeX/Codeception/events","assignees_url":"https://api.github.com/repos/InVeX/Codeception/assignees{/user}","branches_url":"https://api.github.com/repos/InVeX/Codeception/branches{/branch}","tags_url":"https://api.github.com/repos/InVeX/Codeception/tags","blobs_url":"https://api.github.com/repos/InVeX/Codeception/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/InVeX/Codeception/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/InVeX/Codeception/git/refs{/sha}","trees_url":"https://api.github.com/repos/InVeX/Codeception/git/trees{/sha}","statuses_url":"https://api.github.com/repos/InVeX/Codeception/statuses/{sha}","languages_url":"https://api.github.com/repos/InVeX/Codeception/languages","stargazers_url":"https://api.github.com/repos/InVeX/Codeception/stargazers","contributors_url":"https://api.github.com/repos/InVeX/Codeception/contributors","subscribers_url":"https://api.github.com/repos/InVeX/Codeception/subscribers","subscription_url":"https://api.github.com/repos/InVeX/Codeception/subscription","commits_url":"https://api.github.com/repos/InVeX/Codeception/commits{/sha}","git_commits_url":"https://api.github.com/repos/InVeX/Codeception/git/commits{/sha}","comments_url":"https://api.github.com/repos/InVeX/Codeception/comments{/number}","issue_comment_url":"https://api.github.com/repos/InVeX/Codeception/issues/comments{/number}","contents_url":"https://api.github.com/repos/InVeX/Codeception/contents/{+path}","compare_url":"https://api.github.com/repos/InVeX/Codeception/compare/{base}...{head}","merges_url":"https://api.github.com/repos/InVeX/Codeception/merges","archive_url":"https://api.github.com/repos/InVeX/Codeception/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/InVeX/Codeception/downloads","issues_url":"https://api.github.com/repos/InVeX/Codeception/issues{/number}","pulls_url":"https://api.github.com/repos/InVeX/Codeception/pulls{/number}","milestones_url":"https://api.github.com/repos/InVeX/Codeception/milestones{/number}","notifications_url":"https://api.github.com/repos/InVeX/Codeception/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/InVeX/Codeception/labels{/name}","releases_url":"https://api.github.com/repos/InVeX/Codeception/releases{/id}","created_at":"2015-08-02T10:15:18Z","updated_at":"2015-08-02T10:15:20Z","pushed_at":"2015-08-06T05:22:01Z","git_url":"git://github.com/InVeX/Codeception.git","ssh_url":"git@github.com:InVeX/Codeception.git","clone_url":"https://github.com/InVeX/Codeception.git","svn_url":"https://github.com/InVeX/Codeception","homepage":"http://codeception.com","size":54665,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"2.1"}},"base":{"label":"Codeception:2.1","ref":"2.1","sha":"9af9b54baf54fb4fa0f634118ac079f15e4a0794","user":{"login":"Codeception","id":1288753,"avatar_url":"https://avatars.githubusercontent.com/u/1288753?v=3","gravatar_id":"","url":"https://api.github.com/users/Codeception","html_url":"https://github.com/Codeception","followers_url":"https://api.github.com/users/Codeception/followers","following_url":"https://api.github.com/users/Codeception/following{/other_user}","gists_url":"https://api.github.com/users/Codeception/gists{/gist_id}","starred_url":"https://api.github.com/users/Codeception/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Codeception/subscriptions","organizations_url":"https://api.github.com/users/Codeception/orgs","repos_url":"https://api.github.com/users/Codeception/repos","events_url":"https://api.github.com/users/Codeception/events{/privacy}","received_events_url":"https://api.github.com/users/Codeception/received_events","type":"Organization","site_admin":false},"repo":{"id":2880469,"name":"Codeception","full_name":"Codeception/Codeception","owner":{"login":"Codeception","id":1288753,"avatar_url":"https://avatars.githubusercontent.com/u/1288753?v=3","gravatar_id":"","url":"https://api.github.com/users/Codeception","html_url":"https://github.com/Codeception","followers_url":"https://api.github.com/users/Codeception/followers","following_url":"https://api.github.com/users/Codeception/following{/other_user}","gists_url":"https://api.github.com/users/Codeception/gists{/gist_id}","starred_url":"https://api.github.com/users/Codeception/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Codeception/subscriptions","organizations_url":"https://api.github.com/users/Codeception/orgs","repos_url":"https://api.github.com/users/Codeception/repos","events_url":"https://api.github.com/users/Codeception/events{/privacy}","received_events_url":"https://api.github.com/users/Codeception/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Codeception/Codeception","description":"Full-stack testing PHP framework","fork":false,"url":"https://api.github.com/repos/Codeception/Codeception","forks_url":"https://api.github.com/repos/Codeception/Codeception/forks","keys_url":"https://api.github.com/repos/Codeception/Codeception/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Codeception/Codeception/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Codeception/Codeception/teams","hooks_url":"https://api.github.com/repos/Codeception/Codeception/hooks","issue_events_url":"https://api.github.com/repos/Codeception/Codeception/issues/events{/number}","events_url":"https://api.github.com/repos/Codeception/Codeception/events","assignees_url":"https://api.github.com/repos/Codeception/Codeception/assignees{/user}","branches_url":"https://api.github.com/repos/Codeception/Codeception/branches{/branch}","tags_url":"https://api.github.com/repos/Codeception/Codeception/tags","blobs_url":"https://api.github.com/repos/Codeception/Codeception/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Codeception/Codeception/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Codeception/Codeception/git/refs{/sha}","trees_url":"https://api.github.com/repos/Codeception/Codeception/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Codeception/Codeception/statuses/{sha}","languages_url":"https://api.github.com/repos/Codeception/Codeception/languages","stargazers_url":"https://api.github.com/repos/Codeception/Codeception/stargazers","contributors_url":"https://api.github.com/repos/Codeception/Codeception/contributors","subscribers_url":"https://api.github.com/repos/Codeception/Codeception/subscribers","subscription_url":"https://api.github.com/repos/Codeception/Codeception/subscription","commits_url":"https://api.github.com/repos/Codeception/Codeception/commits{/sha}","git_commits_url":"https://api.github.com/repos/Codeception/Codeception/git/commits{/sha}","comments_url":"https://api.github.com/repos/Codeception/Codeception/comments{/number}","issue_comment_url":"https://api.github.com/repos/Codeception/Codeception/issues/comments{/number}","contents_url":"https://api.github.com/repos/Codeception/Codeception/contents/{+path}","compare_url":"https://api.github.com/repos/Codeception/Codeception/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Codeception/Codeception/merges","archive_url":"https://api.github.com/repos/Codeception/Codeception/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Codeception/Codeception/downloads","issues_url":"https://api.github.com/repos/Codeception/Codeception/issues{/number}","pulls_url":"https://api.github.com/repos/Codeception/Codeception/pulls{/number}","milestones_url":"https://api.github.com/repos/Codeception/Codeception/milestones{/number}","notifications_url":"https://api.github.com/repos/Codeception/Codeception/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Codeception/Codeception/labels{/name}","releases_url":"https://api.github.com/repos/Codeception/Codeception/releases{/id}","created_at":"2011-11-30T04:06:44Z","updated_at":"2015-08-07T12:38:22Z","pushed_at":"2015-08-07T23:49:56Z","git_url":"git://github.com/Codeception/Codeception.git","ssh_url":"git@github.com:Codeception/Codeception.git","clone_url":"https://github.com/Codeception/Codeception.git","svn_url":"https://github.com/Codeception/Codeception","homepage":"http://codeception.com","size":65456,"stargazers_count":1665,"watchers_count":1665,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":652,"mirror_url":null,"open_issues_count":235,"forks":652,"open_issues":235,"watchers":1665,"default_branch":"2.1"}},"_links":{"self":{"href":"https://api.github.com/repos/Codeception/Codeception/pulls/2232"},"html":{"href":"https://github.com/Codeception/Codeception/pull/2232"},"issue":{"href":"https://api.github.com/repos/Codeception/Codeception/issues/2232"},"comments":{"href":"https://api.github.com/repos/Codeception/Codeception/issues/2232/comments"},"review_comments":{"href":"https://api.github.com/repos/Codeception/Codeception/pulls/2232/comments"},"review_comment":{"href":"https://api.github.com/repos/Codeception/Codeception/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Codeception/Codeception/pulls/2232/commits"},"statuses":{"href":"https://api.github.com/repos/Codeception/Codeception/statuses/92609767c825206699aafd8d5496684c95e58cf2"}}}}