toBeTrue("Table [{$table}] should exist."); } }); test('all factories create valid records', function () { Service::factory()->create(); Song::factory()->create(); SongGroup::factory()->create(); SongSlide::factory()->create(); SongArrangement::factory()->create(); SongArrangementGroup::factory()->create(); ServiceSong::factory()->create(); Slide::factory()->create(); CtsSyncLog::factory()->create(); expect(Service::count())->toBeGreaterThan(0) ->and(Song::count())->toBeGreaterThan(0) ->and(SongGroup::count())->toBeGreaterThan(0) ->and(SongSlide::count())->toBeGreaterThan(0) ->and(SongArrangement::count())->toBeGreaterThan(0) ->and(SongArrangementGroup::count())->toBeGreaterThan(0) ->and(ServiceSong::count())->toBeGreaterThan(0) ->and(Slide::count())->toBeGreaterThan(0) ->and(CtsSyncLog::count())->toBeGreaterThan(0); });