{"action":"opened","issue":{"url":"https://api.github.com/repos/redmatter/Codeception-MultiDb/issues/19","repository_url":"https://api.github.com/repos/redmatter/Codeception-MultiDb","labels_url":"https://api.github.com/repos/redmatter/Codeception-MultiDb/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/redmatter/Codeception-MultiDb/issues/19/comments","events_url":"https://api.github.com/repos/redmatter/Codeception-MultiDb/issues/19/events","html_url":"https://github.com/redmatter/Codeception-MultiDb/issues/19","id":164617361,"number":19,"title":"Codeception\\Extension\\MultiDb Not Defined","user":{"login":"drmmr763","id":643104,"avatar_url":"https://avatars.githubusercontent.com/u/643104?v=3","gravatar_id":"","url":"https://api.github.com/users/drmmr763","html_url":"https://github.com/drmmr763","followers_url":"https://api.github.com/users/drmmr763/followers","following_url":"https://api.github.com/users/drmmr763/following{/other_user}","gists_url":"https://api.github.com/users/drmmr763/gists{/gist_id}","starred_url":"https://api.github.com/users/drmmr763/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drmmr763/subscriptions","organizations_url":"https://api.github.com/users/drmmr763/orgs","repos_url":"https://api.github.com/users/drmmr763/repos","events_url":"https://api.github.com/users/drmmr763/events{/privacy}","received_events_url":"https://api.github.com/users/drmmr763/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-08T21:11:14Z","updated_at":"2016-07-08T21:11:14Z","closed_at":null,"body":"Hi There\r\n\r\nThank you for contributing this extension. It is something I will definitely be needing to complete some tests for my project. \r\n\r\nI'm having trouble initializing a simple test to get off the ground with this module. Some basic info:\r\n\r\nComposer.json:\r\n```\r\n{\r\n    \"require\": {\r\n        \"codeception/codeception\": \"^2.1\",\r\n        \"redmatter/codeception-multidb\": \" ~2.0@dev\"\r\n    }\r\n}\r\n```\r\n\r\nHere's my configurations:\r\n\r\nacceptance.suite.yml\r\n```\r\nclass_name: AcceptanceTester\r\nmodules:\r\n    enabled:\r\n        - WebDriver:\r\n            url: 'http://dev.mysite..net'\r\n            port: 5454\r\n            browser: phantomjs\r\n            window_size:  1248x900\r\n            capabilities:\r\n              javascriptEnabled: true\r\n              browserConnectionEnabled: true\r\n              elementScrollBehavior: true\r\n        - \\Helper\\Acceptance\r\n        - Codeception\\Extension\\MultiDb\r\n    config:\r\n        Codeception\\Extension\\MultiDb:\r\n          connectors:\r\n            Primary:\r\n              dsn: 'mysql:host=x.y;dbname=db1'\r\n              user: 'myUser'\r\n              password: 'myPass'\r\n              populate: false\r\n              cleanup: false\r\n            Secondary:\r\n              dsn: 'mysql:host=x.y;dbname=db2'\r\n              user: 'myUser'\r\n              password: 'myPass'\r\n              populate: false\r\n              cleanup: false\r\n```\r\n\r\ncodeception.yml\r\n```\r\nactor: Tester\r\npaths:\r\n    tests: tests\r\n    log: tests/_output\r\n    data: tests/_data\r\n    support: tests/_support\r\n    envs: tests/_envs\r\nsettings:\r\n    bootstrap: _bootstrap.php\r\n    colors: true\r\n    memory_limit: 1024M\r\nextensions:\r\n    enabled:\r\n      - Codeception\\Extension\\RunFailed\r\n      - Codeception\\Extension\\MultiDb\r\n```\r\n\r\nMy test is pretty simple:\r\n```php\r\n/**\r\n     *\r\n     *\r\n     * @param FunctionalTester $I\r\n     */\r\n    public function checkForTemp(\\AcceptanceTester $I)\r\n    {\r\n        $I->amConnectedToDb('Secondary');\r\n\r\n        $I->seeInDatabase('leads', array(\r\n            'first_name'   => 'Miles',\r\n            'last_name'    => 'Davis',\r\n            'phone_number' => 8788675309\r\n        ));\r\n    }\r\n```\r\n\r\nI've tried a number of different things to fix the issue like doing `composer dump-autoload` and `composer install`.\r\n\r\nI've also tried working in the `_bootstrap.php` file to add a class autoload per the Codeception documents here (http://codeception.com/docs/reference/Autoload#CodeceptionUtilAutoload)\r\n\r\nI wasn't successful in doing that. \r\n\r\nI am using Codeception 2.1 which I know is new / beta per your readme here. \r\n\r\nAny ideas on how I can get this module working?"}}
{"actor":{"display_login":"drmmr763"}}