mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-11-04 03:07:58 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
		
			773 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			773 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace Tests\Unit\Attribut;
 | 
						|
 | 
						|
use PHPUnit\Framework\TestCase;
 | 
						|
use Infinito\Attribut\GrantAttribut;
 | 
						|
use Infinito\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());
 | 
						|
    }
 | 
						|
}
 |