toBeTrue("Table [{$table}] should exist."); } }); test('dropped tables no longer exist', function () { expect(Schema::hasTable('song_groups'))->toBeFalse(); expect(Schema::hasTable('song_arrangement_groups'))->toBeFalse(); }); test('all factories create valid records', function () { Service::factory()->create(); Song::factory()->create(); SongSlide::factory()->create(); SongArrangement::factory()->create(); ServiceSong::factory()->create(); Slide::factory()->create(); CtsSyncLog::factory()->create(); expect(Service::count())->toBeGreaterThan(0) ->and(Song::count())->toBeGreaterThan(0) ->and(SongSlide::count())->toBeGreaterThan(0) ->and(SongArrangement::count())->toBeGreaterThan(0) ->and(ServiceSong::count())->toBeGreaterThan(0) ->and(Slide::count())->toBeGreaterThan(0) ->and(CtsSyncLog::count())->toBeGreaterThan(0); });