@@ -176,17 +176,22 @@ public function testFindMigrationsSuccessTimestamp()
176176 $ runner = $ runner ->setNamespace ('Tests\Support\MigrationTestMigrations ' );
177177
178178 $ mig1 = (object )[
179- 'name ' => 'Some_migration ' ,
180- 'path ' => TESTPATH . '_support/MigrationTestMigrations/Database/Migrations/2018-01-24-102301_Some_migration.php ' ,
181- 'version ' => '2018-01-24-102301 ' ,
182- 'class ' => 'Tests\Support\MigrationTestMigrations\Database\Migrations\Migration_some_migration ' ,
179+ 'name ' => 'Some_migration ' ,
180+ 'path ' => TESTPATH . '_support/MigrationTestMigrations/Database/Migrations/2018-01-24-102301_Some_migration.php ' ,
181+ 'version ' => '2018-01-24-102301 ' ,
182+ 'class ' => 'Tests\Support\MigrationTestMigrations\Database\Migrations\Migration_some_migration ' ,
183+ 'namespace ' => 'Tests\Support\MigrationTestMigrations ' ,
183184 ];
185+ $ mig1 ->uid = $ runner ->getObjectUid ($ mig1 );
186+
184187 $ mig2 = (object )[
185- 'name ' => 'Another_migration ' ,
186- 'path ' => TESTPATH . '_support/MigrationTestMigrations/Database/Migrations/2018-01-24-102302_Another_migration.php ' ,
187- 'version ' => '2018-01-24-102302 ' ,
188- 'class ' => 'Tests\Support\MigrationTestMigrations\Database\Migrations\Migration_another_migration ' ,
188+ 'name ' => 'Another_migration ' ,
189+ 'path ' => TESTPATH . '_support/MigrationTestMigrations/Database/Migrations/2018-01-24-102302_Another_migration.php ' ,
190+ 'version ' => '2018-01-24-102302 ' ,
191+ 'class ' => 'Tests\Support\MigrationTestMigrations\Database\Migrations\Migration_another_migration ' ,
192+ 'namespace ' => 'Tests\Support\MigrationTestMigrations ' ,
189193 ];
194+ $ mig1 ->uid = $ runner ->getObjectUid ($ mig1 );
190195
191196 $ migrations = $ runner ->findMigrations ();
192197
@@ -217,7 +222,7 @@ public function testMigrationThrowsDisabledException()
217222 $ this ->expectException (ConfigException::class);
218223 $ this ->expectExceptionMessage ('Migrations have been loaded but are disabled or setup incorrectly. ' );
219224
220- $ runner ->version ( 1 );
225+ $ runner ->progress ( );
221226 }
222227
223228 public function testVersionReturnsUpDownSuccess ()
@@ -235,7 +240,7 @@ public function testVersionReturnsUpDownSuccess()
235240 $ runner ->progress ();
236241 $ version = $ runner ->getBatchEnd ($ runner ->getLastBatch ());
237242
238- $ this ->assertEquals ('2018-01-24-102301 ' , $ version );
243+ $ this ->assertEquals ('2018-01-24-102302 ' , $ version );
239244 $ this ->seeInDatabase ('foo ' , ['key ' => 'foobar ' ]);
240245
241246 $ runner ->version (0 );
0 commit comments