public function testModel() { /* @var LayoutTranslationInterface $translation */ $translation = $this->getMockBuilder(LayoutTranslationInterface::class)->getMock(); $layout = new Layout(); $layout->setTranslationDomain('domain'); $this->assertTrue(is_array($layout->getMails())); $this->assertTrue(is_array($layout->getTranslations())); $this->assertCount(0, $layout->getTranslations()); $layout->addTranslation($translation); $this->assertCount(1, $layout->getTranslations()); $layout->removeTranslation($translation); $this->assertCount(0, $layout->getTranslations()); $this->assertSame('domain', $layout->getTranslationDomain()); }