Files
SyliusCmsPlugin/spec/Entity/SectionSpec.php
2018-07-16 03:17:50 +02:00

44 lines
1.1 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\Section;
use BitBag\SyliusCmsPlugin\Entity\SectionInterface;
use PhpSpec\ObjectBehavior;
use Sylius\Component\Core\Model\ChannelInterface;
use Sylius\Component\Resource\Model\ResourceInterface;
final class SectionSpec extends ObjectBehavior
{
function it_is_initializable(): void
{
$this->shouldHaveType(Section::class);
}
function it_is_a_resource(): void
{
$this->shouldHaveType(ResourceInterface::class);
}
function it_implements_section_interface(): void
{
$this->shouldHaveType(SectionInterface::class);
}
function it_allows_access_via_properties(): void
{
$this->setCode('blog');
$this->getCode()->shouldReturn('blog');
}
}