You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-05 12:32:55 +01:00
28 lines
715 B
PHP
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());
|
|
}
|
|
}
|