mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-11-03 18:58:01 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			37 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace Tests\Unit\Entity\Attribut;
 | 
						|
 | 
						|
use PHPUnit\Framework\TestCase;
 | 
						|
use App\Entity\Attribut\MemberRelationAttributInterface;
 | 
						|
use App\Entity\Attribut\MemberRelationAttribut;
 | 
						|
use App\Entity\Meta\Relation\Member\MemberRelationInterface;
 | 
						|
 | 
						|
class MemberRelationAttributTest extends TestCase
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * @var MemberRelationAttributInterface
 | 
						|
     */
 | 
						|
    protected $memberRelation;
 | 
						|
 | 
						|
    public function setUp(): void
 | 
						|
    {
 | 
						|
        $this->memberRelation = new class() implements MemberRelationAttributInterface {
 | 
						|
            use MemberRelationAttribut;
 | 
						|
        };
 | 
						|
    }
 | 
						|
 | 
						|
    public function testConstructor(): void
 | 
						|
    {
 | 
						|
        $this->expectException(\TypeError::class);
 | 
						|
        $this->memberRelation->getMemberRelation();
 | 
						|
    }
 | 
						|
 | 
						|
    public function testAccessors(): void
 | 
						|
    {
 | 
						|
        $membership = $this->createMock(MemberRelationInterface::class);
 | 
						|
        $this->assertNull($this->memberRelation->setMemberRelation($membership));
 | 
						|
        $this->assertEquals($this->memberRelation->getMemberRelation(), $membership);
 | 
						|
    }
 | 
						|
}
 |