<?php

namespace Tests\Feature;

use App\Models\Package;
use Database\Seeders\PackageSeeder;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;

class PackageSeederTest extends TestCase
{
    use RefreshDatabase;

    public function testStarterPackageHasSingleEventQuota(): void
    {
        $this->seed(PackageSeeder::class);

        $starter = Package::where('slug', 'starter')->firstOrFail();

        $this->assertSame(1, $starter->max_events_per_year);
    }
}
