EmailActivationFixture::class, ]; } public function testGetActivationCodeModel() { $model = new KeyConfirmationForm(); $model->key = $this->tester->grabFixture('emailActivations', 'freshRegistrationConfirmation')['key']; $this->assertInstanceOf(EmailActivation::class, $model->getActivationCodeModel()); $model = new KeyConfirmationForm(); $model->key = 'this-is-invalid-key'; $this->assertNull($model->getActivationCodeModel()); } }