mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-09 22:17:26 +01:00
Implemented RightAttributTest
This commit is contained in:
parent
41c8f7cfdd
commit
01c6f2d8f8
30
application/tests/Unit/Entity/Attribut/RightAttributTest.php
Normal file
30
application/tests/Unit/Entity/Attribut/RightAttributTest.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Tests\Unit\Entity\Attribut;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use App\Entity\Attribut\RightAttributInterface;
|
||||
use App\Entity\Attribut\RightAttribut;
|
||||
use App\Entity\Meta\RightInterface;
|
||||
|
||||
class RightAttributTest extends TestCase
|
||||
{
|
||||
/***
|
||||
* @var RightAttributInterface
|
||||
*/
|
||||
private $rightAttribut;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
$this->rightAttribut = new class() implements RightAttributInterface {
|
||||
use RightAttribut;
|
||||
};
|
||||
}
|
||||
|
||||
public function testAccessors(): void
|
||||
{
|
||||
$right = $this->createMock(RightInterface::class);
|
||||
$this->assertNull($this->rightAttribut->setRight($right));
|
||||
$this->assertEquals($right, $this->rightAttribut->getRight());
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user