[ 'class' => EmailActivationFixture::class, 'dataFile' => '@tests/codeception/common/fixtures/data/email-activations.php', ], ]; } public function testInstantiate() { $this->specify('return valid model type', function() { expect(EmailActivation::findOne([ 'type' => EmailActivation::TYPE_REGISTRATION_EMAIL_CONFIRMATION, ]))->isInstanceOf(RegistrationConfirmation::class); expect(EmailActivation::findOne([ 'type' => EmailActivation::TYPE_FORGOT_PASSWORD_KEY, ]))->isInstanceOf(ForgotPassword::class); }); } }