<?php

namespace Tests\Unit;

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

class UserTest extends TestCase
{
    public function test_is_role_returns_true_for_matching_role(): void
    {
        $user = new User(['role' => 'sekretariat']);

        $this->assertTrue($user->isRole('sekretariat'));
    }

    public function test_is_role_returns_false_for_non_matching_role(): void
    {
        $user = new User(['role' => 'user']);

        $this->assertFalse($user->isRole('sekretariat'));
    }
}
