Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function testInit(): void |
||
27 | { |
||
28 | /** @var Database $db */ |
||
29 | $db = $this->app->get(Database::class); |
||
30 | |||
31 | $this->assertSame([], $db->getTables()); |
||
32 | |||
33 | $this->runCommandDebug('migrate:init'); |
||
34 | |||
35 | $t = $db->getTables()[0]; |
||
36 | $this->assertSame('migrations', $t->getName()); |
||
37 | } |
||
39 |