{"action":"created","issue":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/3612","repository_url":"https://api.github.com/repos/Codeception/Codeception","labels_url":"https://api.github.com/repos/Codeception/Codeception/issues/3612/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/Codeception/issues/3612/comments","events_url":"https://api.github.com/repos/Codeception/Codeception/issues/3612/events","html_url":"https://github.com/Codeception/Codeception/issues/3612","id":183198902,"number":3612,"title":"Yii2 module don't call _fixtures() method of Cest class","user":{"login":"sashsvamir","id":1404421,"avatar_url":"https://avatars.githubusercontent.com/u/1404421?v=3","gravatar_id":"","url":"https://api.github.com/users/sashsvamir","html_url":"https://github.com/sashsvamir","followers_url":"https://api.github.com/users/sashsvamir/followers","following_url":"https://api.github.com/users/sashsvamir/following{/other_user}","gists_url":"https://api.github.com/users/sashsvamir/gists{/gist_id}","starred_url":"https://api.github.com/users/sashsvamir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sashsvamir/subscriptions","organizations_url":"https://api.github.com/users/sashsvamir/orgs","repos_url":"https://api.github.com/users/sashsvamir/repos","events_url":"https://api.github.com/users/sashsvamir/events{/privacy}","received_events_url":"https://api.github.com/users/sashsvamir/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Codeception/Codeception/labels/Yii","name":"Yii","color":"bdc3c7"}],"state":"open","locked":false,"assignee":{"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},"assignees":[{"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}],"milestone":null,"comments":2,"created_at":"2016-10-15T09:13:10Z","updated_at":"2016-10-24T16:38:50Z","closed_at":null,"body":"\r\nI'm tried to add `_fixture()` method to my Cest classes on any suites, but Yii2 module on 169 line: `method_exists($test, self::TEST_FIXTURES_METHOD)` always return false value and loading fixture is passing;\r\nI'm try to debug this moment, on 169 line, $test contain \"Codeception\\Test\\Case\" class and have property $testClassInstance with my current Cest class. But when i tried check to any exist method by calling `method_exist($test, 'exist_method_name')` of this Cest class, that always return false value, only methods of \"Codeception\\Test\\Case\" can be finded (ex. calling method_exist($test, \"test\") return true).\r\n\r\n* Codeception version: 2.2.5\r\n* PHP Version: 5.5.37\r\n* Operating System: os x\r\n* Installation type: Composer\r\n* List of installed packages (`composer show`)\r\n* Suite configuration:\r\ncodeception.yml\r\n```yml\r\nnamespace: productEav\\tests\\backend\r\nactor: Tester\r\npaths:\r\n    tests: .\r\n    log: ./_output\r\n    data: ./_data\r\n    support: ./_support\r\nsettings:\r\n    bootstrap: ../../../../../tests/codeception/backend/_bootstrap.php\r\n    colors: true\r\n    memory_limit: 1024M\r\n    log: true\r\nextensions:\r\n    enabled:\r\n        - Codeception\\Extension\\RunFailed\r\nconfig:\r\n    test_entry_url: http://shop-back/index-test.php\r\n```\r\nunit.suite.yml\r\n```yml\r\nclass_name: UnitTester\r\nmodules:\r\n    enabled:\r\n        - Asserts\r\n        - productEav\\tests\\backend\\Helper\\Unit\r\n        - Yii2:\r\n            configFile: '../../../../tests/codeception/config/backend/unit.php'\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/comments/255794549","html_url":"https://github.com/Codeception/Codeception/issues/3612#issuecomment-255794549","issue_url":"https://api.github.com/repos/Codeception/Codeception/issues/3612","id":255794549,"user":{"login":"primipilus","id":19665318,"avatar_url":"https://avatars.githubusercontent.com/u/19665318?v=3","gravatar_id":"","url":"https://api.github.com/users/primipilus","html_url":"https://github.com/primipilus","followers_url":"https://api.github.com/users/primipilus/followers","following_url":"https://api.github.com/users/primipilus/following{/other_user}","gists_url":"https://api.github.com/users/primipilus/gists{/gist_id}","starred_url":"https://api.github.com/users/primipilus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/primipilus/subscriptions","organizations_url":"https://api.github.com/users/primipilus/orgs","repos_url":"https://api.github.com/users/primipilus/repos","events_url":"https://api.github.com/users/primipilus/events{/privacy}","received_events_url":"https://api.github.com/users/primipilus/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T16:38:50Z","updated_at":"2016-10-24T16:38:50Z","body":"Imho their is an error in ```codeception/codeception/src/Codeception/Module/Yii2.php``` on line 170\r\n```$this->haveFixtures(call_user_func($test, self::TEST_FIXTURES_METHOD));```\r\nmust be ```$this->haveFixtures(call_user_func([$test, self::TEST_FIXTURES_METHOD]));```"}}
{"actor":{"display_login":"primipilus"}}