Browse Source

Fixed tests

tags/2.0.8
Alexander Makarov 9 years ago
parent
commit
4cb0c1b55c
  1. 36
      tests/framework/console/controllers/MigrateControllerTestTrait.php

36
tests/framework/console/controllers/MigrateControllerTestTrait.php

@ -224,8 +224,14 @@ CODE;
use yii\db\Migration;
/**
* Handles the creation and droping for table `test` in the database.
*/
class {$class} extends Migration
{
/**
* @inheritdoc
*/
public function up()
{
\$this->createTable('test', [
@ -236,6 +242,9 @@ class {$class} extends Migration
]);
}
/**
* @inheritdoc
*/
public function down()
{
\$this->dropTable('test');
@ -256,8 +265,14 @@ CODE;
use yii\db\Migration;
/**
* Handles the creation and droping for table `test` in the database.
*/
class {$class} extends Migration
{
/**
* @inheritdoc
*/
public function up()
{
\$this->createTable('test', [
@ -267,6 +282,9 @@ class {$class} extends Migration
]);
}
/**
* @inheritdoc
*/
public function down()
{
\$this->dropTable('test');
@ -286,8 +304,14 @@ CODE;
use yii\db\Migration;
/**
* Handles the creation and droping for table `test` in the database.
*/
class {$class} extends Migration
{
/**
* @inheritdoc
*/
public function up()
{
\$this->createTable('test', [
@ -295,6 +319,9 @@ class {$class} extends Migration
]);
}
/**
* @inheritdoc
*/
public function down()
{
\$this->dropTable('test');
@ -315,8 +342,14 @@ CODE;
use yii\db\Migration;
/**
* Handles the creation and droping for table `test` in the database.
*/
class {$class} extends Migration
{
/**
* @inheritdoc
*/
public function up()
{
\$this->createTable('test', [
@ -327,6 +360,9 @@ class {$class} extends Migration
]);
}
/**
* @inheritdoc
*/
public function down()
{
\$this->dropTable('test');

Loading…
Cancel
Save