Exemplo n.º 1
0
 protected function setUp()
 {
     parent::setUp();
     $_SERVER['SERVER_NAME'] = 'phpunit-locahost';
     //for yii2 request init. WTF?
     $this->mockYiiApplication();
 }
Exemplo n.º 2
0
 protected function setUp()
 {
     parent::setUp();
     $this->mockYiiApplication(['components' => ['mailer' => ['class' => \yii\swiftmailer\Mailer::class, 'useFileTransport' => true, 'viewPath' => '@app/emails', 'fileTransportPath' => '@runtime/mail', 'htmlLayout' => false, 'textLayout' => false, 'transport' => ['class' => \Swift_SmtpTransport::class, 'host' => 'smtp.sample.com', 'username' => 'test', 'password' => 'test', 'port' => '465', 'encryption' => 'ssl']]]]);
 }
Exemplo n.º 3
0
 /**
  * (non-PHPdoc)
  * @see PHPUnit_Extensions_Database_TestCase::setUp()
  */
 protected function setUp()
 {
     parent::setUp();
     $this->mockYiiApplication();
 }
Exemplo n.º 4
0
 protected function setUp()
 {
     $this->mockYiiApplication();
     $this->books = $this->setupFixture('books');
     parent::setUp();
 }
Exemplo n.º 5
0
 protected function setUp()
 {
     parent::setUp();
     $this->initAppFileSystem();
 }
Exemplo n.º 6
0
 public function setUp()
 {
     parent::setUp();
     $this->security = new Security();
 }