/** * @covers Kunstmaan\NodeBundle\Entity\Node::addNodeTranslation * @covers Kunstmaan\NodeBundle\Entity\Node::getNodeTranslations */ public function testGetNodeTranslationsWithOfflineNodes() { $translation1 = new NodeTranslation(); $translation1->setOnline(true); $this->object->addNodeTranslation($translation1); $translation2 = new NodeTranslation(); $translation2->setOnline(false); $this->object->addNodeTranslation($translation2); $this->assertEquals(2, $this->object->getNodeTranslations(true)->count()); $this->assertEquals(1, $this->object->getNodeTranslations()->count()); }