mirror of
https://github.com/jbcr/sitemap-plugin.git
synced 2026-03-24 17:02:19 +01:00
* Refactoring models: - Renaming (also of associated factories) - Added constructors - Added UrlAlternative model together with a factory -adding upgrade info regarding models
22 lines
545 B
PHP
22 lines
545 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Tests\SitemapPlugin\Exception;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use SitemapPlugin\Exception\SitemapUrlNotFoundException;
|
|
use SitemapPlugin\Model\Url;
|
|
|
|
final class SitemapUrlNotFoundExceptionTest extends TestCase
|
|
{
|
|
public function testException()
|
|
{
|
|
$sitemapUrl = new Url('location');
|
|
$sitemapUrl->setLocation('test');
|
|
|
|
$exception = new SitemapUrlNotFoundException($sitemapUrl);
|
|
$this->assertSame('Sitemap url "test" not found', $exception->getMessage());
|
|
}
|
|
}
|