Files
php-flasher/tests/Prime/EventDispatcher/Event/PostPersistEventTest.php
T
2024-04-09 07:57:01 +00:00

28 lines
715 B
PHP

<?php
declare(strict_types=1);
namespace Flasher\Tests\Prime\EventDispatcher\Event;
use Flasher\Prime\EventDispatcher\Event\PostPersistEvent;
use Flasher\Prime\Notification\Envelope;
use Flasher\Prime\Notification\Notification;
use PHPUnit\Framework\TestCase;
final class PostPersistEventTest extends TestCase
{
public function testPostPersistEvent(): void
{
$envelopes = [
new Envelope(new Notification()),
new Envelope(new Notification()),
new Envelope(new Notification()),
new Envelope(new Notification()),
];
$event = new PostPersistEvent($envelopes);
$this->assertEquals($envelopes, $event->getEnvelopes());
}
}