mirror of
https://github.com/jbcr/SyliusCmsPlugin.git
synced 2026-03-24 17:02:09 +01:00
45 lines
1.2 KiB
PHP
Executable File
45 lines
1.2 KiB
PHP
Executable File
<?php
|
|
|
|
/*
|
|
* This file has been created by developers from BitBag.
|
|
* Feel free to contact us once you face any issues or want to start
|
|
* another great project.
|
|
* You can find more information about us on https://bitbag.shop and write us
|
|
* an email on mikolaj.krol@bitbag.pl.
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace spec\BitBag\SyliusCmsPlugin\Entity;
|
|
|
|
use BitBag\SyliusCmsPlugin\Entity\SectionTranslation;
|
|
use BitBag\SyliusCmsPlugin\Entity\SectionTranslationInterface;
|
|
use PhpSpec\ObjectBehavior;
|
|
use Sylius\Component\Resource\Model\ResourceInterface;
|
|
use Sylius\Component\Resource\Model\TranslationInterface;
|
|
|
|
final class SectionTranslationSpec extends ObjectBehavior
|
|
{
|
|
function it_is_initializable()
|
|
{
|
|
$this->shouldHaveType(SectionTranslation::class);
|
|
}
|
|
|
|
function it_is_a_resource()
|
|
{
|
|
$this->shouldHaveType(ResourceInterface::class);
|
|
}
|
|
|
|
function it_implements_frequently_asked_question_translation_interface()
|
|
{
|
|
$this->shouldHaveType(SectionTranslationInterface::class);
|
|
$this->shouldHaveType(TranslationInterface::class);
|
|
}
|
|
|
|
function it_allows_access_via_properties()
|
|
{
|
|
$this->setName('Blog');
|
|
$this->getName()->shouldReturn('Blog');
|
|
}
|
|
}
|