/**
  * Create the objects against which you will test.
  */
 protected function setUp()
 {
     parent::setUp();
     Yii::$app->mailer->fileTransportCallback = function ($mailer, $message) {
         return 'testing_message.eml';
     };
 }
Ejemplo n.º 2
0
 /**
  * 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']]]);
 }