public function setUp() { $this->testDatabase = 'yentu_import_test'; parent::setup(); $this->createDb($GLOBALS['DB_NAME']); $this->initYentu($GLOBALS['DB_NAME']); }
public function setUp() { $this->testDatabase = 'yentu_tests'; parent::setup(); $this->createDb($GLOBALS['DB_NAME']); $this->connect($GLOBALS['DB_FULL_DSN']); $this->setupStreams(); }
public function setUp() { $this->testDatabase = 'yentu_rollback_test'; parent::setup(); $this->createDb($GLOBALS['DB_NAME']); $this->initDb($GLOBALS['DB_FULL_DSN'], file_get_contents("tests/sql/{$GLOBALS['DRIVER']}/pre_rollback.sql")); $this->connect($GLOBALS['DB_FULL_DSN']); $this->setupStreams(); $init = new \yentu\commands\Init(); $init->createConfigFile(array('driver' => $GLOBALS['DRIVER'], 'host' => $GLOBALS['DB_HOST'], 'dbname' => $GLOBALS["DB_NAME"], 'user' => $GLOBALS['DB_USER'], 'password' => $GLOBALS['DB_PASSWORD'], 'file' => $GLOBALS['DB_FILE'])); Config::readPath(\yentu\Yentu::getPath('config'), 'yentu'); }
public function setup() { $this->testDatabase = 'yentu_migration_test'; parent::setup(); $this->setupForMigration(); }
public function setup() { $this->testDatabase = 'yentu_change_name'; parent::setup(); $this->setupForMigration(); }