示例#1
0
 public function setUp()
 {
     $this->testDatabase = 'yentu_import_test';
     parent::setup();
     $this->createDb($GLOBALS['DB_NAME']);
     $this->initYentu($GLOBALS['DB_NAME']);
 }
示例#2
0
文件: InitTest.php 项目: codogh/yentu
 public function setUp()
 {
     $this->testDatabase = 'yentu_tests';
     parent::setup();
     $this->createDb($GLOBALS['DB_NAME']);
     $this->connect($GLOBALS['DB_FULL_DSN']);
     $this->setupStreams();
 }
示例#3
0
 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');
 }
示例#4
0
 public function setup()
 {
     $this->testDatabase = 'yentu_migration_test';
     parent::setup();
     $this->setupForMigration();
 }
示例#5
0
 public function setup()
 {
     $this->testDatabase = 'yentu_change_name';
     parent::setup();
     $this->setupForMigration();
 }