예제 #1
0
 protected function setUp()
 {
     parent::setUp();
     $this->mockApplication();
     $authFile = Yii::$app->getRuntimePath() . '/rbac.php';
     @unlink($authFile);
     $this->auth = new PhpManager();
     $this->auth->authFile = $authFile;
     $this->auth->init();
 }
예제 #2
0
 protected function setUp()
 {
     static::$filemtime = null;
     static::$time = null;
     parent::setUp();
     if (defined('HHVM_VERSION')) {
         $this->markTestSkipped('PhpManager is not compatible with HHVM.');
     }
     $this->mockApplication();
     $this->removeDataFiles();
     $this->auth = $this->createManager();
 }
예제 #3
0
 protected function setUp()
 {
     parent::setUp();
     $databases = $this->getParam('databases');
     $this->database = $databases[$this->driverName];
     $pdo_database = 'pdo_' . $this->driverName;
     if (!extension_loaded('pdo') || !extension_loaded($pdo_database)) {
         $this->markTestSkipped('pdo and ' . $pdo_database . ' extension are required.');
     }
     $this->auth = new DbManager(['db' => $this->getConnection()]);
     $this->auth->init();
     $this->prepareData();
 }
 protected function setUp()
 {
     parent::setUp();
     $this->auth = $this->createManager();
 }
예제 #5
0
 protected function setUp()
 {
     parent::setUp();
     $this->auth = new DbManager(['db' => $this->getConnection()]);
 }