Skip to content

Commit ffcc5d6

Browse files
author
Paul Rogers
committed
docs(MigrateLoadTest): Add assertion that non-migration data is not loaded.
1 parent 7d505a9 commit ffcc5d6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/Mysql/MigrateLoadTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ public function test_handle()
2424
\DB::table('migrations')->value('migration')
2525
);
2626

27+
$this->assertEquals(0, \DB::table('test_ms')->count());
28+
2729
$table_name = \DB::table('information_schema.tables')
2830
->where('table_schema', \DB::getDatabaseName())
2931
->whereNotIn('table_name', ['migrations'])

tests/Postgresql/MigrateLoadTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ public function test_handle()
2525
\DB::table('migrations')->value('migration')
2626
);
2727

28+
$this->assertEquals(0, \DB::table('test_ms')->count());
29+
2830
$table_name = \DB::table('information_schema.tables')
2931
->where('table_catalog', \DB::getDatabaseName())
3032
->where('table_schema', 'public')

0 commit comments

Comments
 (0)