historyGuard()->up())->not->toThrow(RuntimeException::class); }); test('refuses a database from an older 1.x release', function (): void { DB::table('migrations')->where('migration', '2024_07_13_091852_clear_unused_allocation_notes')->delete(); expect(fn () => historyGuard()->up())->toThrow( RuntimeException::class, 'missing 1 Pterodactyl Panel 1.x migration(s), starting with 2024_07_13_091852_clear_unused_allocation_notes' ); });