mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-10-31 17:29:04 +00:00 
			
		
		
		
	Implemented childs attribute test and code formating
This commit is contained in:
		| @@ -1,4 +1,5 @@ | ||||
| <?php | ||||
|  | ||||
| namespace tests\Unit\Entity\Meta; | ||||
|  | ||||
| use PHPUnit\Framework\TestCase; | ||||
| @@ -9,20 +10,20 @@ use Doctrine\Common\Collections\Collection; | ||||
| class RelationTest extends TestCase | ||||
| { | ||||
|     /** | ||||
|      *  | ||||
|      * @var RelationInterface | ||||
|      */ | ||||
|     protected $relation; | ||||
|      | ||||
|     public function setUp():void{ | ||||
|  | ||||
|     public function setUp(): void | ||||
|     { | ||||
|         $this->relation = new Relation(); | ||||
|     } | ||||
|      | ||||
|     public function testConstructor():void { | ||||
|  | ||||
|     public function testConstructor(): void | ||||
|     { | ||||
|         $this->assertInstanceOf(Collection::class, $this->relation->getChilds()); | ||||
|         $this->assertInstanceOf(Collection::class, $this->relation->getParents()); | ||||
|         $this->expectException(\TypeError::class); | ||||
|         $this->relation->getSource(); | ||||
|     } | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user