<?php

namespace Tests\Unit\Models;

use App\Models\CompetitionClassWinner;
use PHPUnit\Framework\TestCase;

class CompetitionClassWinnerTest extends TestCase
{
    public function test_model_metadata_is_converted(): void
    {
        $model = new CompetitionClassWinner();

        $this->assertSame('competition_class_winners', $model->getTable());
        $this->assertSame('id', $model->getKeyName());
        $this->assertSame(true, $model->timestamps);
        $this->assertSame(["competition_id", "class_section_id", "winners_override", "created_at", "updated_at", "question_count", "prize_1", "prize_2", "prize_3", "prize_4", "prize_5", "prize_6"], $model->getFillable());
    }

    public function test_model_class_loads(): void
    {
        $this->assertInstanceOf(CompetitionClassWinner::class, new CompetitionClassWinner());
    }
}
