EmailActivationFixture::class, ]; } public function testActionAccessTokens() { /** @var EmailActivation $expiredConfirmation */ $expiredConfirmation = $this->tester->grabFixture('emailActivations', 'deeplyExpiredConfirmation'); $controller = new CleanupController('cleanup', Yii::$app); $this->assertEquals(0, $controller->actionEmailKeys()); $this->tester->cantSeeRecord(EmailActivation::className(), ['key' => $expiredConfirmation->key]); } }