Skip to content

Commit 280be19

Browse files
author
Andrey Helldar
committed
Small refactoring
1 parent 5261d1d commit 280be19

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

tests/Commands/MigrateTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function testMigrationCommand()
1919
$this->artisan('migrate:actions')->run();
2020

2121
$this->assertDatabaseCount($this->table, 1);
22-
$this->assertDatabaseHasLike($this->table, 'migration', 'test_migration');
22+
$this->assertDatabaseMigrationHas($this->table, 'test_migration');
2323
}
2424

2525
public function testEveryTimeExecution()

tests/Commands/RefreshTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ public function testRefreshCommand()
2323
$this->artisan('migrate:actions:refresh')->run();
2424

2525
$this->assertDatabaseCount($this->table, 1);
26-
$this->assertDatabaseHasLike($this->table, 'migration', 'refresh');
26+
$this->assertDatabaseMigrationHas($this->table, 'refresh');
2727
}
2828
}

tests/Commands/ResetTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ public function testResetCommand()
1919
$this->artisan('migrate:actions')->run();
2020

2121
$this->assertDatabaseCount($this->table, 1);
22-
$this->assertDatabaseHasLike($this->table, 'migration', 'reset');
22+
$this->assertDatabaseMigrationHas($this->table, 'reset');
2323

2424
$this->artisan('migrate:actions:reset')->run();
2525

2626
$this->assertDatabaseCount($this->table, 0);
27-
$this->assertDatabaseDoesntLike($this->table, 'migration', 'reset');
27+
$this->assertDatabaseMigrationDoesntLike($this->table, 'reset');
2828
}
2929
}

tests/Commands/RollbackTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ public function testRollbackCommand()
2121

2222
$this->assertDatabaseCount($this->table, 2);
2323

24-
$this->assertDatabaseHasLike($this->table, 'migration', 'rollback_one');
25-
$this->assertDatabaseHasLike($this->table, 'migration', 'rollback_two');
26-
$this->assertDatabaseDoesntLike($this->table, 'migration', 'rollback_tree');
24+
$this->assertDatabaseMigrationHas($this->table, 'rollback_one');
25+
$this->assertDatabaseMigrationHas($this->table, 'rollback_two');
26+
$this->assertDatabaseMigrationDoesntLike($this->table, 'rollback_tree');
2727

2828
$this->artisan('migrate:actions:rollback')->run();
2929

@@ -38,8 +38,8 @@ public function testRollbackCommand()
3838

3939
$this->assertDatabaseCount($this->table, 3);
4040

41-
$this->assertDatabaseHasLike($this->table, 'migration', 'rollback_one');
42-
$this->assertDatabaseHasLike($this->table, 'migration', 'rollback_two');
43-
$this->assertDatabaseHasLike($this->table, 'migration', 'rollback_tree');
41+
$this->assertDatabaseMigrationHas($this->table, 'rollback_one');
42+
$this->assertDatabaseMigrationHas($this->table, 'rollback_two');
43+
$this->assertDatabaseMigrationHas($this->table, 'rollback_tree');
4444
}
4545
}

tests/Commands/StatusTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ public function testStatusCommand()
2828

2929
$this->artisan('migrate:actions:status')->run();
3030

31-
$this->assertDatabaseHasLike($this->table, 'migration', 'status');
31+
$this->assertDatabaseMigrationHas($this->table, 'status');
3232
}
3333
}

0 commit comments

Comments
 (0)