mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-10 22:37:28 +01:00
31 lines
858 B
PHP
31 lines
858 B
PHP
<?php
|
|
|
|
namespace tests\unit\Entity\Source\Combination;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use App\Entity\Source\Combination\UserSourceInterface;
|
|
use App\Entity\Source\Combination\UserSource;
|
|
use Doctrine\Common\Collections\Collection;
|
|
use App\Entity\Source\Combination\PersonIdentitySourceInterface;
|
|
|
|
class UserSourceTest extends TestCase
|
|
{
|
|
/**
|
|
* @var UserSourceInterface
|
|
*/
|
|
public $userSource;
|
|
|
|
public function setUp(): void
|
|
{
|
|
$this->userSource = new UserSource();
|
|
}
|
|
|
|
public function testConstructor(): void
|
|
{
|
|
$this->assertInstanceOf(Collection::class, $this->userSource->getMemberships());
|
|
$this->assertInstanceOf(PersonIdentitySourceInterface::class, $this->userSource->getPersonIdentitySource());
|
|
$this->expectException(\TypeError::class);
|
|
$this->userSource->getUser();
|
|
}
|
|
}
|