[ 'class' => AccountFixture::class, 'dataFile' => '@tests/codeception/common/fixtures/data/accounts.php', ], ]; } public function testApplyLanguage() { $this->specify('language changed', function() { /** @var Account $account */ $account = Account::findOne($this->accounts['admin']); $model = new ChangeLanguageForm($account); $model->lang = 'ru'; expect($model->applyLanguage())->true(); expect($account->lang)->equals('ru'); }); } }