public function testModel() { /* @var MailInterface $mail */ $mail = $this->getMockBuilder(MailInterface::class)->getMock(); $translation = new MailTranslation($mail); $translation->setSubject('Subject of translation')->setHtmlBody('HTML body of translation')->setLocale('fr')->setLabel('Label of translation')->setDescription('Description of translation')->setBody('Body of translation'); $this->assertSame($mail, $translation->getMail()); $this->assertSame('fr', $translation->getLocale()); $this->assertSame('Label of translation', $translation->getLabel()); $this->assertSame('Description of translation', $translation->getDescription()); $this->assertSame('Subject of translation', $translation->getSubject()); $this->assertSame('HTML body of translation', $translation->getHtmlBody()); $this->assertSame('Body of translation', $translation->getBody()); }