<?php

use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;

test('wipe migration is no-op on fresh database', function () {
    expect(DB::table('songs')->count())->toBe(0);
    expect(Schema::hasTable('songs'))->toBeTrue();
    expect(Schema::hasTable('song_groups'))->toBeFalse();
});

test('wipe migration guard: song_groups does not exist after schema refactor', function () {
    expect(Schema::hasTable('song_groups'))->toBeFalse();
});
