2019-01-20 13:02:16 +01:00
|
|
|
<?php
|
|
|
|
|
2019-05-30 16:52:02 +02:00
|
|
|
namespace tests\Unit\Domain\Request\Action;
|
2019-01-20 13:02:16 +01:00
|
|
|
|
|
|
|
use PHPUnit\Framework\TestCase;
|
2019-05-30 16:52:02 +02:00
|
|
|
use Infinito\Domain\Request\Action\RequestedActionService;
|
|
|
|
use Infinito\Domain\Request\Action\RequestedActionServiceInterface;
|
|
|
|
use Infinito\Domain\Request\User\RequestedUserServiceInterface;
|
2019-05-30 17:15:50 +02:00
|
|
|
use Infinito\Domain\User\UserSourceDirectorInterface;
|
2019-01-20 13:02:16 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author kevinfrantz
|
|
|
|
*/
|
|
|
|
class RequestedActionServiceTest extends TestCase
|
|
|
|
{
|
|
|
|
public function testConstructorSet(): void
|
|
|
|
{
|
2019-02-03 01:01:26 +01:00
|
|
|
$userSourceDirector = $this->createMock(UserSourceDirectorInterface::class);
|
|
|
|
$requestedUserService = $this->createMock(RequestedUserServiceInterface::class);
|
2019-02-13 15:29:29 +01:00
|
|
|
$requestedUserService->method('getUserSourceDirector')->willReturn($userSourceDirector);
|
|
|
|
$service = new RequestedActionService($requestedUserService);
|
2019-01-20 13:02:16 +01:00
|
|
|
$this->assertInstanceOf(RequestedActionServiceInterface::class, $service);
|
|
|
|
}
|
|
|
|
}
|