first commit
This commit is contained in:
20
tests/Kernel/NotFoundExceptionTest.php
Normal file
20
tests/Kernel/NotFoundExceptionTest.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\Kernel;
|
||||
|
||||
use Netig\Netslim\Kernel\Support\Exception\NotFoundException;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
#[\PHPUnit\Framework\Attributes\AllowMockObjectsWithoutExpectations]
|
||||
|
||||
final class NotFoundExceptionTest extends TestCase
|
||||
{
|
||||
public function testMessageContainsEntityAndIdentifier(): void
|
||||
{
|
||||
$exception = new NotFoundException('Ressource', 'mon-slug');
|
||||
|
||||
self::assertSame('Ressource introuvable : mon-slug', $exception->getMessage());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user