AccountFixture::class, ]; } public function testAgreeWithLatestRules() { /** @var Account $account */ $account = Account::findOne($this->tester->grabFixture('accounts', 'account-with-old-rules-version')); $model = new AcceptRulesForm($account); $this->assertTrue($model->agreeWithLatestRules()); $this->assertEquals(LATEST_RULES_VERSION, $account->rules_agreement_version); } }