weekly quick-entry form (#2793)
This commit is contained in:
@@ -17,6 +17,7 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
||||
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
|
||||
|
||||
/**
|
||||
* @covers \App\Validator\Constraints\Project
|
||||
* @covers \App\Validator\Constraints\ProjectValidator
|
||||
*/
|
||||
class ProjectValidatorTest extends ConstraintValidatorTestCase
|
||||
@@ -48,4 +49,10 @@ class ProjectValidatorTest extends ConstraintValidatorTestCase
|
||||
->setCode(ProjectConstraint::END_BEFORE_BEGIN_ERROR)
|
||||
->assertRaised();
|
||||
}
|
||||
|
||||
public function testGetTargets()
|
||||
{
|
||||
$constraint = new ProjectConstraint();
|
||||
self::assertEquals('class', $constraint->getTargets());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user