Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
41 | protected function setUp() |
||
42 | { |
||
43 | if (Yii::$app->get('db', false) === null) { |
||
44 | $this->markTestSkipped(); |
||
45 | } else { |
||
46 | (new TestMigration())->up(); |
||
47 | if (Yii::$app->db->driverName === 'pgsql') { |
||
48 | Yii::$app->db->createCommand("SELECT setval(pg_get_serial_sequence('tree', 'id'), 61)")->execute(); |
||
49 | } |
||
50 | parent::setUp(); |
||
51 | } |
||
52 | } |
||
53 | |||
69 | } |