mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Refactored\moved Attribut folder
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Unit\Attribut;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use App\Attribut\GrantAttribut;
|
||||
use App\Attribut\GrantAttributInterface;
|
||||
|
||||
class GrantAttributTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var GrantAttributInterface
|
||||
*/
|
||||
protected $grant;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
$this->grant = new class() implements GrantAttributInterface {
|
||||
use GrantAttribut;
|
||||
};
|
||||
}
|
||||
|
||||
public function testConstruct(): void
|
||||
{
|
||||
$this->expectException(\TypeError::class);
|
||||
$this->grant->getGrant();
|
||||
}
|
||||
|
||||
public function testAccessors(): void
|
||||
{
|
||||
$grant = true;
|
||||
$this->assertNull($this->grant->setGrant($grant));
|
||||
$this->assertEquals($grant, $this->grant->getGrant());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user