public function setUp()
 {
     parent::setUp();
     $this->mockConsoleApplication();
     $this->migrateControllerClass = BufferableMigrateController::class;
     $this->migrationPath = dirname(__DIR__) . '/_files/migrations';
     $this->setUpMigrationPath();
 }
Пример #2
0
 public function setUp()
 {
     parent::setUp();
     $this->mockWebApplication();
     Manager::schema()->dropIfExists('order');
     Manager::schema()->create('order', function (Blueprint $table) {
         $table->increments('id');
         $table->string('address')->unique();
         $table->timestamps();
     });
 }
 public function setUp()
 {
     parent::setUp();
     $this->mockWebApplication();
     Manager::schema()->dropIfExists('users');
     Manager::schema()->create('users', function (Blueprint $table) {
         $table->increments('id');
         $table->string('username');
         $table->string('auth_key');
         $table->timestamps();
     });
 }
 public function setUp()
 {
     parent::setUp();
     $this->mockWebApplication();
     $this->db = Yii::$app->db;
     $this->db->schema()->dropIfExists('order');
     $this->db->schema()->create('order', function (Blueprint $table) {
         $table->increments('id');
         $table->string('address');
         $table->timestamps();
     });
     $this->unloadFixtures();
     $this->loadFixtures();
 }
 public function setUp()
 {
     parent::setUp();
     $this->mockWebApplication();
     $this->db = Yii::$app->db;
 }