mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Solved unit tests
This commit is contained in:
@@ -6,7 +6,7 @@ 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\Data\PersonIdentitySourceInterface;
|
||||
use App\Entity\Source\Combination\PersonIdentitySourceInterface;
|
||||
|
||||
class UserSourceTest extends TestCase
|
||||
{
|
||||
@@ -23,7 +23,7 @@ class UserSourceTest extends TestCase
|
||||
public function testConstructor(): void
|
||||
{
|
||||
$this->assertInstanceOf(Collection::class, $this->userSource->getMemberships());
|
||||
$this->assertInstanceOf(PersonIdentitySourceInterface::class, $this->userSource->getIdentitySource());
|
||||
$this->assertInstanceOf(PersonIdentitySourceInterface::class, $this->userSource->getPersonIdentitySource());
|
||||
$this->expectException(\TypeError::class);
|
||||
$this->userSource->getUser();
|
||||
}
|
||||
|
Reference in New Issue
Block a user