infinito/application/tests/Unit/Entity/Source/Data/UserSourceTest.php

29 lines
711 B
PHP
Raw Normal View History

<?php
2018-11-04 12:25:53 +01:00
namespace tests\unit\Entity\Source\Data;
use PHPUnit\Framework\TestCase;
use App\Entity\Source\Data\UserSourceInterface;
use App\Entity\Source\Data\UserSource;
use Doctrine\Common\Collections\Collection;
use App\Entity\Source\Data\NameSourceInterface;
class UserSourceTest extends TestCase
{
/**
* @var UserSourceInterface
*/
public $userSource;
2018-11-04 12:25:53 +01:00
public function setUp(): void
{
$this->userSource = new UserSource();
}
2018-11-04 12:25:53 +01:00
public function testConstructor(): void
{
$this->assertInstanceOf(Collection::class, $this->userSource->getMemberships());
$this->assertInstanceOf(NameSourceInterface::class, $this->userSource->getNameSource());
}
}