mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-10 06:27:24 +01:00
31 lines
751 B
PHP
31 lines
751 B
PHP
<?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());
|
|
}
|
|
}
|