From 99306688370874b3153ec6ab185a58044881cb1a Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Wed, 24 Apr 2019 12:58:13 +0200 Subject: Fixed test coverage --- tests/Unit/Database/Migration/MigrateTest.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/Unit/Database/Migration/MigrateTest.php') diff --git a/tests/Unit/Database/Migration/MigrateTest.php b/tests/Unit/Database/Migration/MigrateTest.php index 3a9adbe8..6dffbe2f 100644 --- a/tests/Unit/Database/Migration/MigrateTest.php +++ b/tests/Unit/Database/Migration/MigrateTest.php @@ -54,6 +54,8 @@ class MigrateTest extends TestCase $migration->expects($this->atLeastOnce()) ->method('migrate') ->withConsecutive( + ['foo/9876_03_22_210000_random_hack.php', '9876_03_22_210000_random_hack', Migrate::UP], + ['foo/9999_99_99_999999_another_foo.php', '9999_99_99_999999_another_foo', Migrate::UP], ['foo/9876_03_22_210000_random_hack.php', '9876_03_22_210000_random_hack', Migrate::UP], ['foo/9999_99_99_999999_another_foo.php', '9999_99_99_999999_another_foo', Migrate::UP], ['foo/9876_03_22_210000_random_hack.php', '9876_03_22_210000_random_hack', Migrate::UP], @@ -62,12 +64,16 @@ class MigrateTest extends TestCase $migration->expects($this->atLeastOnce()) ->method('setMigrated') ->withConsecutive( + ['9876_03_22_210000_random_hack', Migrate::UP], + ['9999_99_99_999999_another_foo', Migrate::UP], ['9876_03_22_210000_random_hack', Migrate::UP], ['9999_99_99_999999_another_foo', Migrate::UP], ['9876_03_22_210000_random_hack', Migrate::UP], ['4567_11_01_000000_do_stuff', Migrate::DOWN] ); + $migration->run('foo', Migrate::UP); + $messages = []; $migration->setOutput(function ($text) use (&$messages) { $messages[] = $text; -- cgit v1.2.3-54-g00ecf