AccountFixture::class, ]; } public function testApplyLanguage() { $this->specify('rules version bumped to latest', function() { /** @var Account $account */ $account = Account::findOne($this->accounts['account-with-old-rules-version']); $model = new AcceptRulesForm($account); expect($model->agreeWithLatestRules())->true(); expect($account->rules_agreement_version)->equals(LATEST_RULES_VERSION); }); } }