2019-01-16 22:15:00 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace tests\Unit\Domain\RequestManagement;
|
|
|
|
|
|
|
|
use PHPUnit\Framework\TestCase;
|
2019-01-18 18:01:54 +01:00
|
|
|
use App\Domain\RequestManagement\RequestedUserRightService;
|
2019-01-16 22:15:00 +01:00
|
|
|
use App\Domain\UserManagement\UserSourceDirectorServiceInterface;
|
2019-01-18 18:01:54 +01:00
|
|
|
use App\Domain\RequestManagement\RequestedUserRightServiceInterface;
|
2019-01-16 22:15:00 +01:00
|
|
|
use App\Domain\RequestManagement\RequestedRightServiceInterface;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author kevinfrantz
|
|
|
|
*/
|
2019-01-18 18:01:54 +01:00
|
|
|
class RequestedUserRightServiceTest extends TestCase
|
2019-01-16 22:15:00 +01:00
|
|
|
{
|
|
|
|
public function testConstructorSet(): void
|
|
|
|
{
|
|
|
|
$requestedRightService = $this->createMock(RequestedRightServiceInterface::class);
|
|
|
|
$userSourceDirectorService = $this->createMock(UserSourceDirectorServiceInterface::class);
|
2019-01-18 18:01:54 +01:00
|
|
|
$service = new RequestedUserRightService($userSourceDirectorService, $requestedRightService);
|
|
|
|
$this->assertInstanceOf(RequestedUserRightServiceInterface::class, $service);
|
2019-01-16 22:15:00 +01:00
|
|
|
}
|
|
|
|
}
|