/** * Create the objects against which you will test. */ protected function setUp() { parent::setUp(); Yii::$app->mailer->fileTransportCallback = function ($mailer, $message) { return 'testing_message.eml'; }; }
/** * Create the objects against which you will test. */ public function setUp() { parent::setUp(); Yii::configure(Yii::$app, ['components' => ['user' => ['class' => 'yii\\web\\User', 'identityClass' => 'app\\models\\UserIdentity']]]); }