/** * @covers Kunstmaan\NodeBundle\Entity\Node::getNodeTranslations * @covers Kunstmaan\NodeBundle\Entity\Node::setNodeTranslations */ public function testGetSetNodeTranslations() { $translations = new ArrayCollection(); $translation = new NodeTranslation(); $translations->add($translation); $this->object->setNodeTranslations($translations); $this->assertEquals(1, $this->object->getNodeTranslations(true)->count()); $this->assertEquals($translations, $this->object->getNodeTranslations(true)); $this->assertTrue($this->object->getNodeTranslations(true)->contains($translation)); }