mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-10 22:37:28 +01:00
34 lines
781 B
PHP
34 lines
781 B
PHP
<?php
|
|
|
|
namespace Infinito\Tests\Unit\Attribut;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use Infinito\Attribut\RightAttributInterface;
|
|
use Infinito\Attribut\RightAttribut;
|
|
use Infinito\Entity\Meta\RightInterface;
|
|
|
|
/**
|
|
* @author kevinfrantz
|
|
*/
|
|
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());
|
|
}
|
|
}
|