public function __construct()
 {
     parent::__construct();
     $matches = array();
     assert(preg_match("/host=([^;]+);(?:port=([^;]+);)?dbname=([^;]+)/", Yii::app()->db->connectionString, $matches) == 1);
     // Not Coding Standard
     if ($matches[2] != '') {
         $this->databasePort = intval($matches[2]);
     } else {
         $databaseType = RedBeanDatabase::getDatabaseTypeFromDsnString(Yii::app()->db->connectionString);
         $this->databasePort = DatabaseCompatibilityUtil::getDatabaseDefaultPort($databaseType);
     }
     $this->hostname = $matches[1];
     $this->rootUsername = Yii::app()->db->username;
     $this->rootPassword = Yii::app()->db->password;
     $this->existingDatabaseName = $matches[3];
     $this->temporaryDatabaseName = "zurmo_wacky";
     if ($this->rootUsername == 'zurmo') {
         $this->rootUsername = '******';
         $this->rootPassword = '******';
         $this->temporaryDatabaseName = 'zurmo_wacky';
     }
     $this->superUserPassword = '******';
     $this->databaseBackupTestFile = INSTANCE_ROOT . '/protected/runtime/databaseBackupTest.sql';
 }
Exemple #2
0
 public function __construct($name)
 {
     parent::__construct($name);
     if (self::$fileName1 == null) {
         self::$fileName1 = "myDoc_" . time() . ".txt";
         self::$fileName2 = "myDoc2_" . time() . ".txt";
         self::$folderName1 = "folder1" . time();
     }
 }
 public function __construct()
 {
     parent::__construct();
     $this->mapIdentity = function ($value) {
         return $value;
     };
     $this->mapIdentityOption = function ($value) {
         return Option::create($value);
     };
 }
 public function __construct()
 {
     parent::__construct();
     $this->falseFilter = function ($value) {
         return false;
     };
     $this->trueFilter = function ($value) {
         return true;
     };
 }
 public function __construct()
 {
     parent::__construct();
     list(, $this->temporaryDatabaseHostname, $this->temporaryDatabasePort, $this->temporaryDatabaseName) = array_values(RedBeanDatabase::getDatabaseInfoFromDsnString(Yii::app()->tempDb->connectionString));
     $this->temporaryDatabaseUsername = Yii::app()->tempDb->username;
     $this->temporaryDatabasePassword = Yii::app()->tempDb->password;
     list(, $this->testDatabaseHostname, $this->testDatabasePort, $this->testDatabaseName) = array_values(RedBeanDatabase::getDatabaseInfoFromDsnString(Yii::app()->db->connectionString));
     $this->testDatabaseUsername = Yii::app()->db->username;
     $this->testDatabasePassword = Yii::app()->db->password;
     $this->superUserPassword = '******';
     $this->databaseBackupTestFile = INSTANCE_ROOT . '/protected/runtime/databaseBackupTest.sql';
 }
Exemple #6
0
 public function __construct()
 {
     parent::__construct();
     $this->plus = new Google_Service_Plus($this->getClient());
 }
Exemple #7
0
 public function __construct()
 {
     parent::__construct();
     $this->service = new apiUrlshortenerService(BaseTest::$client);
 }
Exemple #8
0
 public function __construct()
 {
     parent::__construct();
     $this->adsense = new Postman_Google_Service_AdSense($this->getClient());
 }
 public function __construct()
 {
     parent::__construct();
     $this->service = new Google_Service_Pagespeedonline($this->getClient());
 }
Exemple #10
0
 public function __construct()
 {
     parent::__construct();
     $this->taskService = new Google_Service_Tasks($this->getClient());
 }
Exemple #11
0
 public function __construct()
 {
     parent::__construct();
     $this->taskService = new Google_TasksService(BaseTest::$client);
 }
Exemple #12
0
 public function __construct()
 {
     parent::__construct();
     $this->plus = new apiPlusService(BaseTest::$client);
 }
Exemple #13
0
 public function __construct()
 {
     parent::__construct();
     $this->service = new Google_Service_Urlshortener($this->getClient());
 }
 public function __construct()
 {
     parent::__construct();
     $this->adsense = new Google_AdSenseService(BaseTest::$client);
 }
 public function __construct()
 {
     parent::__construct();
     $this->youtube = new Google_Service_YouTube($this->getClient());
 }
Exemple #16
0
 public function __construct()
 {
     parent::__construct();
     $this->service = new Google_PagespeedonlineService(BaseTest::$client);
 }
Exemple #17
0
 /**
  * Class constructor
  *
  */
 public function __construct()
 {
     $this->requiresAuth = false;
     parent::__construct();
 }