summaryrefslogtreecommitdiff
path: root/tests/Unit/Database
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-04-24 12:58:13 +0200
committermsquare <msquare@notrademark.de>2019-04-25 17:56:06 +0200
commit99306688370874b3153ec6ab185a58044881cb1a (patch)
treed0091ccdec3bf71024c376b4b2bfc4db4440f0d4 /tests/Unit/Database
parentc74fa7955d9392aea954c2e45ed4137fb2bebcbe (diff)
Fixed test coverage
Diffstat (limited to 'tests/Unit/Database')
-rw-r--r--tests/Unit/Database/Migration/MigrateTest.php6
1 files changed, 6 insertions, 0 deletions
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
@@ -57,6 +57,8 @@ class MigrateTest extends TestCase
['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],
['foo/4567_11_01_000000_do_stuff.php', '4567_11_01_000000_do_stuff', Migrate::DOWN]
);
$migration->expects($this->atLeastOnce())
@@ -65,9 +67,13 @@ class MigrateTest extends TestCase
['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;