23 lines
658 B
PHP
23 lines
658 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Tests\Unit\Domain\Enums\Campaign;
|
|
|
|
use Domain\Enums\Campaign\CampaignStatus;
|
|
|
|
covers(CampaignStatus::class);
|
|
|
|
describe('campaign status', function (): void {
|
|
it('has the expected cases with their backing values', function (): void {
|
|
// THEN
|
|
expect(CampaignStatus::CREATED->value)->toBe("created")
|
|
->and(CampaignStatus::TRANSFORMED->value)->toBe("transformed")
|
|
->and(CampaignStatus::REJECTED->value)->toBe("rejected");
|
|
});
|
|
|
|
it('exposes its case name', function (): void {
|
|
// THEN
|
|
expect(CampaignStatus::CREATED->name)->toBe('CREATED');
|
|
});
|
|
});
|