diff --git a/application/tests/Unit/Entity/Attribut/CollectionAttributTest.php b/application/tests/Unit/Entity/Attribut/CollectionAttributTest.php index fc2eb78..52f39b3 100644 --- a/application/tests/Unit/Entity/Attribut/CollectionAttributTest.php +++ b/application/tests/Unit/Entity/Attribut/CollectionAttributTest.php @@ -33,4 +33,11 @@ class CollectionAttributTest extends TestCase $this->assertNull($this->collection->setCollection($collection)); $this->assertEquals($collection, $this->collection->getCollection()); } + + public function testAdd():void{ + $mock = new class{}; + $this->collection->setCollection(new ArrayCollection()); + $this->assertTrue($this->collection->getCollection()->add($mock)); + $this->assertEquals($mock, $this->collection->getCollection()->get(0)); + } }