expectException(\Exception::class); new Updater(); } /** @test */ public function experiment() { $updater = new UpdaterFake(__DIR__ . '/../test-data', 'roles'); \DB::enableQueryLog(); $updater->run(); \DB::disableQueryLog(); dd(\DB::getQueryLog()); } } class UpdaterFake extends Updater { protected function getModel(string $name) { return Roles::class; } }