mirror of
https://github.com/jbcr/sitemap-plugin.git
synced 2026-03-26 09:52:10 +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
634 B
PHP
29 lines
634 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace spec\SitemapPlugin\Factory;
|
|
|
|
use PhpSpec\ObjectBehavior;
|
|
use SitemapPlugin\Factory\SitemapFactory;
|
|
use SitemapPlugin\Factory\SitemapFactoryInterface;
|
|
use SitemapPlugin\Model\Sitemap;
|
|
|
|
final class SitemapFactorySpec extends ObjectBehavior
|
|
{
|
|
function it_is_initializable(): void
|
|
{
|
|
$this->shouldHaveType(SitemapFactory::class);
|
|
}
|
|
|
|
function it_implements_sitemap_factory_interface()
|
|
{
|
|
$this->shouldImplement(SitemapFactoryInterface::class);
|
|
}
|
|
|
|
function it_creates_empty_sitemap()
|
|
{
|
|
$this->createNew()->shouldBeLike(new Sitemap());
|
|
}
|
|
}
|