added missing @throws

This commit is contained in:
Robin Krahnen 2020-05-14 14:43:09 +02:00
parent c6e7d549c1
commit ca1ec5707f

View file

@ -7,12 +7,16 @@ use DigiComp\SettingValidator\Tests\Functional\Fixtures\TestValidationGroupsCust
use DigiComp\SettingValidator\Tests\Functional\Fixtures\TestValidationGroupsDefaultObject; use DigiComp\SettingValidator\Tests\Functional\Fixtures\TestValidationGroupsDefaultObject;
use DigiComp\SettingValidator\Validation\Validator\SettingsValidator; use DigiComp\SettingValidator\Validation\Validator\SettingsValidator;
use Neos\Flow\Tests\FunctionalTestCase; use Neos\Flow\Tests\FunctionalTestCase;
use Neos\Flow\Validation\Exception\InvalidValidationConfigurationException;
use Neos\Flow\Validation\Exception\InvalidValidationOptionsException;
use Neos\Flow\Validation\Exception\NoSuchValidatorException;
use Neos\Flow\Validation\ValidatorResolver; use Neos\Flow\Validation\ValidatorResolver;
class SettingsValidatorTest extends FunctionalTestCase class SettingsValidatorTest extends FunctionalTestCase
{ {
/** /**
* @test * @test
* @throws InvalidValidationOptionsException
*/ */
public function ifNoNameIsGivenClassNameIsUsed() public function ifNoNameIsGivenClassNameIsUsed()
{ {
@ -25,6 +29,9 @@ class SettingsValidatorTest extends FunctionalTestCase
/** /**
* @test * @test
* @throws InvalidValidationConfigurationException
* @throws InvalidValidationOptionsException
* @throws NoSuchValidatorException
*/ */
public function conjunctionValidationWorksAsExpected() public function conjunctionValidationWorksAsExpected()
{ {
@ -37,6 +44,7 @@ class SettingsValidatorTest extends FunctionalTestCase
/** /**
* @test * @test
* @throws InvalidValidationOptionsException
*/ */
public function defaultValidationGroupWorks() public function defaultValidationGroupWorks()
{ {
@ -49,6 +57,7 @@ class SettingsValidatorTest extends FunctionalTestCase
/** /**
* @test * @test
* @throws InvalidValidationOptionsException
*/ */
public function customValidationGroupWorks() public function customValidationGroupWorks()
{ {