Files
ludikevent_crm/tests/Event/Object/EventAdminCreateTest.php

24 lines
664 B
PHP
Raw Normal View History

<?php
namespace App\Tests\Event\Object;
use App\Entity\Account;
use App\Event\Object\EventAdminCreate;
use PHPUnit\Framework\Attributes\AllowMockObjectsWithoutExpectations;
use PHPUnit\Framework\TestCase;
#[AllowMockObjectsWithoutExpectations]
class EventAdminCreateTest extends TestCase
{
public function testGetters()
{
$account = $this->createMock(Account::class);
$requestedAccount = $this->createMock(Account::class);
$event = new EventAdminCreate($account, $requestedAccount);
$this->assertSame($account, $event->getAccount());
$this->assertSame($requestedAccount, $event->getRequestedAccount());
}
}