diff --git a/application/tests/Unit/Entity/Attribut/ParentsAttributTest.php b/application/tests/Unit/Entity/Attribut/ParentsAttributTest.php new file mode 100644 index 0000000..e37495b --- /dev/null +++ b/application/tests/Unit/Entity/Attribut/ParentsAttributTest.php @@ -0,0 +1,36 @@ +parents = new class() implements ParentsAttributInterface { + use ParentsAttribut; + }; + } + + public function testConstructor(): void + { + $this->expectException(\TypeError::class); + $this->parents->getParents(); + } + + public function testAccessors(): void + { + $parents = new ArrayCollection(); + $this->assertNull($this->parents->setParents($parents)); + $this->assertEquals($parents, $this->parents->getParents()); + } +}