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
654 B
PHP
29 lines
654 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace spec\SitemapPlugin\Factory;
|
|
|
|
use PhpSpec\ObjectBehavior;
|
|
use SitemapPlugin\Factory\ImageFactory;
|
|
use SitemapPlugin\Factory\ImageFactoryInterface;
|
|
use SitemapPlugin\Model\Image;
|
|
|
|
final class ImageFactorySpec extends ObjectBehavior
|
|
{
|
|
function it_is_initializable(): void
|
|
{
|
|
$this->shouldHaveType(ImageFactory::class);
|
|
}
|
|
|
|
function it_implements_image_factory_interface(): void
|
|
{
|
|
$this->shouldImplement(ImageFactoryInterface::class);
|
|
}
|
|
|
|
function it_creates_empty_sitemap_url(): void
|
|
{
|
|
$this->createNew('location')->shouldBeLike(new Image('location'));
|
|
}
|
|
}
|