<?php

use App\Enums\MediaClassification;

test('media classification enum has expected cases', function () {
    expect(MediaClassification::cases())->toHaveCount(3);
});

test('media classification enum labels', function (MediaClassification $classification, string $label) {
    expect($classification->getLabel())->toBe($label);
})->with([
    [MediaClassification::LOCAL, 'Lokal'],
    [MediaClassification::REGIONAL, 'Regional'],
    [MediaClassification::NATIONAL, 'Nasional'],
]);

test('media classification enum options', function () {
    expect(MediaClassification::options())->toEqual([
        1 => 'Lokal',
        2 => 'Regional',
        3 => 'Nasional',
    ]);
});

test('media classification enum values and comment', function () {
    expect(MediaClassification::values())->toEqual([1, 2, 3]);
    expect(MediaClassification::comment())->toBe('1: Lokal, 2: Regional, 3: Nasional');
});
