mirror of
https://github.com/jbcr/sitemap-plugin.git
synced 2026-04-26 18:08:10 +02:00
673fcd6b5b
* Refactoring models: - Renaming (also of associated factories) - Added constructors - Added UrlAlternative model together with a factory -adding upgrade info regarding models
29 lines
655 B
PHP
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);
|
|
}
|
|
}
|