<?php

declare(strict_types=1);

use Builder\Core\Exceptions\InvalidPublishTransitionException;

it('creates an exception with the scheduled without date message', function (): void {
    $exception = InvalidPublishTransitionException::scheduledWithoutDate();

    expect($exception)->toBeInstanceOf(InvalidPublishTransitionException::class)
        ->and($exception->getMessage())->toBe('Cannot schedule publication without a publish_at date.');
});
