Beispiel #1
0
 protected function setUp()
 {
     parent::setUp();
     ActiveRecord::$db = $this->getConnection();
     $this->mockWebApplication();
     $this->breadcrumbs = new Breadcrumbs();
 }
Beispiel #2
0
 public function setUp()
 {
     parent::setUp();
     $this->mockApplication();
     ActiveRecord::$db = $this->getConnection();
 }
Beispiel #3
0
 protected function setUp()
 {
     parent::setUp();
     ActiveRecord::$db = $this->getConnection();
 }
 protected function setUp()
 {
     static::$params = (require __DIR__ . '/data/config.php');
     parent::setUp();
     ActiveRecord::$db = $this->getConnection();
 }
 protected function setUp()
 {
     parent::setUp();
     $this->mockWebApplication();
 }
Beispiel #6
0
 public function setUp()
 {
     parent::setUp();
     \Yii::$app->set('db', $this->getConnection());
     ActiveRecord::$db = $this->getConnection();
 }
 protected function setUp()
 {
     static::$params = (require __DIR__ . '/data/config.php');
     parent::setUp();
     self::$db = BaseRecord::$db = $this->getConnection(self::$db === null, self::$db === null);
 }