Files
sitemap-plugin/spec/Exception/SitemapUrlNotFoundExceptionSpec.php
Joachim Løvgaard 673fcd6b5b Refactoring models (#87)
* Refactoring models:
- Renaming (also of associated factories)
- Added constructors
- Added UrlAlternative model together with a factory
-adding upgrade info regarding models
2019-07-01 15:46:13 +02:00

29 lines
655 B
PHP

<?php
declare(strict_types=1);
namespace spec\SitemapPlugin\Exception;
use PhpSpec\ObjectBehavior;
use SitemapPlugin\Exception\SitemapUrlNotFoundException;
use SitemapPlugin\Model\UrlInterface;
final class SitemapUrlNotFoundExceptionSpec extends ObjectBehavior
{
function let(UrlInterface $url): void
{
$url->getLocation()->willReturn('http://sylius.org');
$this->beConstructedWith($url, null);
}
function it_is_an_exception(): void
{
$this->shouldHaveType(\Exception::class);
}
function it_is_initializable(): void
{
$this->shouldHaveType(SitemapUrlNotFoundException::class);
}
}