mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 23:17:47 +01:00
28 lines
711 B
PHP
28 lines
711 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Flasher\Tests\Prime\EventDispatcher\Event;
|
|
|
|
use Flasher\Prime\EventDispatcher\Event\PostUpdateEvent;
|
|
use Flasher\Prime\Notification\Envelope;
|
|
use Flasher\Prime\Notification\Notification;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
final class PostUpdateEventTest extends TestCase
|
|
{
|
|
public function testPostUpdateEvent(): void
|
|
{
|
|
$envelopes = [
|
|
new Envelope(new Notification()),
|
|
new Envelope(new Notification()),
|
|
new Envelope(new Notification()),
|
|
new Envelope(new Notification()),
|
|
];
|
|
|
|
$event = new PostUpdateEvent($envelopes);
|
|
|
|
$this->assertEquals($envelopes, $event->getEnvelopes());
|
|
}
|
|
}
|