Optimized Exceptions

This commit is contained in:
Kevin Frantz
2019-01-03 19:41:16 +01:00
parent 130682ef6c
commit 67428c2fea
10 changed files with 27 additions and 18 deletions

View File

@@ -8,7 +8,7 @@ use App\Entity\Meta\RightInterface;
use App\Entity\Meta\Right;
use App\Entity\Meta\Law;
use App\DBAL\Types\LayerType;
use App\Exception\NoValidChoice;
use App\Exception\NoValidChoiceException;
use App\Entity\Source\AbstractSource;
/**
@@ -77,7 +77,7 @@ class RightTest extends TestCase
$this->assertNull($this->right->setType($key));
$this->assertEquals($key, $this->right->getType());
}
$this->expectException(NoValidChoice::class);
$this->expectException(NoValidChoiceException::class);
$this->right->setType('NoneValidType');
}
@@ -87,7 +87,7 @@ class RightTest extends TestCase
$this->assertNull($this->right->setLayer($key));
$this->assertEquals($key, $this->right->getLayer());
}
$this->expectException(NoValidChoice::class);
$this->expectException(NoValidChoiceException::class);
$this->right->setLayer('NoneValidLayer');
}