mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Finished refactoring of exceptions
This commit is contained in:
@@ -5,7 +5,7 @@ namespace Tests\Attribut;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Infinito\Attribut\SlugAttributInterface;
|
||||
use Infinito\Attribut\SlugAttribut;
|
||||
use Infinito\Exception\UnvalidValueException;
|
||||
use Infinito\Exception\Validation\ValueInvalidException;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
@@ -42,7 +42,7 @@ class SlugAttributTest extends TestCase
|
||||
|
||||
public function testNumericSetException(): void
|
||||
{
|
||||
$this->expectException(UnvalidValueException::class);
|
||||
$this->expectException(ValueInvalidException::class);
|
||||
$this->slugAttribut->setSlug('1234');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user