<?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'))->toBeTrue();
    expect(DB::table('song_groups')->count())->toBe(0);
});

test('wipe migration guard: song_groups exists but is empty after fresh install', function () {
    expect(Schema::hasTable('song_groups'))->toBeTrue();
    expect(DB::table('song_groups')->count())->toBe(0);
});
