mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Implemented tests for UserRepository and mapped data schema
This commit is contained in:
@@ -21,9 +21,9 @@ class AbstractEntityTest extends TestCase
|
||||
|
||||
public function testConstructor(): void
|
||||
{
|
||||
$this->assertEquals(0, $this->entity->getVersion());
|
||||
$this->expectException(\TypeError::class);
|
||||
$this->entity->getId();
|
||||
$this->entity->getVersion();
|
||||
}
|
||||
|
||||
public function testVersion(): void
|
||||
|
@@ -23,6 +23,7 @@ class RelationTest extends TestCase
|
||||
{
|
||||
$this->assertInstanceOf(Collection::class, $this->relation->getChilds());
|
||||
$this->assertInstanceOf(Collection::class, $this->relation->getParents());
|
||||
$this->assertEquals(0, $this->relation->getVersion());
|
||||
$this->expectException(\TypeError::class);
|
||||
$this->relation->getSource();
|
||||
}
|
||||
|
@@ -32,6 +32,7 @@ class UserTest extends TestCase
|
||||
public function testConstructor(): void
|
||||
{
|
||||
$this->assertInstanceOf(UserInterface::class, new User());
|
||||
$this->assertEquals(0, $this->user->getVersion());
|
||||
}
|
||||
|
||||
public function testUsername(): void
|
||||
|
Reference in New Issue
Block a user