Skip to content

Commit ab25668

Browse files
author
Andrey Helldar
committed
Added tests
1 parent a70fc62 commit ab25668

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/Commands/MigrateTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,19 @@ public function testEveryTimeExecution()
2626
{
2727
$table = 'every_time';
2828

29-
$this->artisan('migrate:actions:install')->run();
3029
$this->artisan('migrate')->run();
30+
$this->artisan('migrate:actions:install')->run();
3131

3232
$this->assertDatabaseCount($table, 0);
33+
$this->assertDatabaseCount($this->table, 0);
3334
$this->artisan('migrate:actions')->run();
3435

3536
$this->assertDatabaseCount($table, 1);
37+
$this->assertDatabaseCount($this->table, 1);
3638
$this->artisan('migrate:actions')->run();
3739

3840
$this->assertDatabaseCount($table, 2);
41+
$this->assertDatabaseCount($this->table, 1);
3942
}
4043

4144
public function testMigrationNotFound()

0 commit comments

Comments
 (0)