Skip to content

Commit

Permalink
update TestCase
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Chepurnoy committed Jul 25, 2016
1 parent f6da3a8 commit d7dcbbf
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace yii2mod\settings\tests;

use yii\caching\ArrayCache;
use yii\helpers\ArrayHelper;
use Yii;

Expand Down Expand Up @@ -81,18 +80,18 @@ protected function destroyApplication()
protected function setupTestDbData()
{
$db = Yii::$app->getDb();

// Structure :
$table = 'Setting';
$columns = [

$db->createCommand()->createTable('Setting', [
'id' => 'pk',
'type' => 'string',
'section' => 'string',
'key' => 'string',
'value' => 'text',
'status' => 'smallint',
'createdAt' => 'integer',
'updatedAt' => 'integer',
];
$db->createCommand()->createTable($table, $columns)->execute();
'type' => 'string(10) not null',
'section' => 'string not null',
'key' => 'string not null',
'value' => 'text not null',
'status' => 'integer',
'createdAt' => 'integer not null',
'updatedAt' => 'integer not null',
])->execute();
}
}

0 comments on commit d7dcbbf

Please sign in to comment.