shouldHaveType(PageTranslation::class);
}
function it_is_a_resource(): void
{
$this->shouldHaveType(ResourceInterface::class);
}
function it_implements_page_translation_interface(): void
{
$this->shouldHaveType(PageTranslationInterface::class);
$this->shouldHaveType(TranslationInterface::class);
}
function it_allows_access_via_properties(PageImageInterface $pageImage): void
{
$this->setName('Homepage');
$this->getName()->shouldReturn('Homepage');
$this->setSlug('homepage');
$this->getSlug()->shouldReturn('homepage');
$this->setContent('
Homepage
');
$this->getContent()->shouldReturn('Homepage
');
$this->setMetaKeywords('homepage');
$this->getMetaKeywords()->shouldReturn('homepage');
$this->setMetaDescription('Description');
$this->getMetaDescription()->shouldReturn('Description');
$this->setImage($pageImage);
$this->getImage()->shouldReturn($pageImage);
$this->setNameWhenLinked('name linked');
$this->getNameWhenLinked()->shouldReturn('name linked');
$this->setBreadcrumb('name breadcrumb');
$this->getBreadcrumb()->shouldReturn('name breadcrumb');
$this->setDescriptionWhenLinked('description linked');
$this->getDescriptionWhenLinked()->shouldReturn('description linked');
}
}