public function testModel() { /* @var LayoutInterface $layout */ $layout = $this->getMockBuilder(LayoutInterface::class)->getMock(); $translation = new LayoutTranslation($layout); $translation->setLocale('fr')->setLabel('Label of translation')->setDescription('Description of translation')->setBody('Body of translation'); $this->assertSame($layout, $translation->getLayout()); $this->assertSame('fr', $translation->getLocale()); $this->assertSame('Label of translation', $translation->getLabel()); $this->assertSame('Description of translation', $translation->getDescription()); $this->assertSame('Body of translation', $translation->getBody()); }