Files
sitemap-plugin/tests/Exception/SitemapUrlNotFoundExceptionTest.php
Joachim Løvgaard 673fcd6b5b Refactoring models (#87)
* Refactoring models:
- Renaming (also of associated factories)
- Added constructors
- Added UrlAlternative model together with a factory
-adding upgrade info regarding models
2019-07-01 15:46:13 +02:00

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());
}
}