mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-11-04 11:17:58 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			903 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			903 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace Infinito\Tests\Unit\Attribut;
 | 
						|
 | 
						|
use PHPUnit\Framework\TestCase;
 | 
						|
use Infinito\Attribut\ParentRelationAttributInterface;
 | 
						|
use Infinito\Attribut\ParentRelationAttribut;
 | 
						|
use Infinito\Entity\Meta\Relation\Parent\ParentRelationInterface;
 | 
						|
 | 
						|
class ParentRelationAttributTest extends TestCase
 | 
						|
{
 | 
						|
    /***
 | 
						|
     * @var ParentRelationAttributInterface
 | 
						|
     */
 | 
						|
    protected $parentRelationAttribut;
 | 
						|
 | 
						|
    public function setUp(): void
 | 
						|
    {
 | 
						|
        $this->parentRelationAttribut = new class() implements ParentRelationAttributInterface {
 | 
						|
            use ParentRelationAttribut;
 | 
						|
        };
 | 
						|
    }
 | 
						|
 | 
						|
    public function testAccessors(): void
 | 
						|
    {
 | 
						|
        $relation = $this->createMock(ParentRelationInterface::class);
 | 
						|
        $this->assertNull($this->parentRelationAttribut->setParentRelation($relation));
 | 
						|
        $this->assertEquals($relation, $this->parentRelationAttribut->getParentRelation());
 | 
						|
    }
 | 
						|
}
 |