for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace spec\Sylius\Component\Attribute\Model;
use PhpSpec\ObjectBehavior;
use Sylius\Component\Attribute\Model\AttributeTranslation;
use Sylius\Component\Attribute\Model\AttributeTranslationInterface;
/**
* @author Gonzalo Vilaseca <[email protected]>
final class AttributeTranslationSpec extends ObjectBehavior
{
function it_is_initializable(): void
$this->shouldHaveType(AttributeTranslation::class);
}
function it_implements_attribute_translation_interface(): void
$this->shouldImplement(AttributeTranslationInterface::class);
function it_has_no_id_by_default(): void
$this->getId()->shouldReturn(null);
function it_has_no_name_by_default(): void
$this->getName()->shouldReturn(null);
function its_name_is_mutable(): void
$this->setName('Size');
$this->getName()->shouldReturn('Size');