mirror of
https://github.com/jbcr/sitemap-plugin.git
synced 2026-03-26 01:42:06 +01:00
* Refactoring models: - Renaming (also of associated factories) - Added constructors - Added UrlAlternative model together with a factory -adding upgrade info regarding models
29 lines
638 B
PHP
29 lines
638 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace spec\SitemapPlugin\Factory;
|
|
|
|
use PhpSpec\ObjectBehavior;
|
|
use SitemapPlugin\Factory\UrlFactory;
|
|
use SitemapPlugin\Factory\UrlFactoryInterface;
|
|
use SitemapPlugin\Model\Url;
|
|
|
|
final class UrlFactorySpec extends ObjectBehavior
|
|
{
|
|
function it_is_initializable(): void
|
|
{
|
|
$this->shouldHaveType(UrlFactory::class);
|
|
}
|
|
|
|
function it_implements_url_factory_interface(): void
|
|
{
|
|
$this->shouldImplement(UrlFactoryInterface::class);
|
|
}
|
|
|
|
function it_creates_empty_sitemap_url(): void
|
|
{
|
|
$this->createNew('location')->shouldBeLike(new Url('location'));
|
|
}
|
|
}
|