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\Bundle\ThemeBundle\Model;
use PhpSpec\ObjectBehavior;
use Sylius\Bundle\ThemeBundle\Model\ThemeAuthor;
/**
* @author Kamil Kokot <[email protected]>
final class ThemeAuthorSpec extends ObjectBehavior
{
function it_implements_theme_author_interface(): void
$this->shouldImplement(ThemeAuthor::class);
}
function it_has_name(): void
$this->getName()->shouldReturn(null);
$this->setName('Krzysztof Krawczyk');
$this->getName()->shouldReturn('Krzysztof Krawczyk');
function it_has_email(): void
$this->getEmail()->shouldReturn(null);
$this->setEmail('[email protected]');
$this->getEmail()->shouldReturn('[email protected]');
function it_has_homepage(): void
$this->getHomepage()->shouldReturn(null);
$this->setHomepage('http://example.com');
$this->getHomepage()->shouldReturn('http://example.com');
function it_has_role(): void
$this->getRole()->shouldReturn(null);
$this->setRole('Developer');
$this->getRole()->shouldReturn('Developer');