Release 2.12 (#4609)
This commit is contained in:
@@ -42,7 +42,7 @@ class RoleValidatorTest extends ConstraintValidatorTestCase
|
||||
];
|
||||
}
|
||||
|
||||
public function testConstraintIsInvalid()
|
||||
public function testConstraintIsInvalid(): void
|
||||
{
|
||||
$this->expectException(UnexpectedTypeException::class);
|
||||
|
||||
@@ -53,14 +53,14 @@ class RoleValidatorTest extends ConstraintValidatorTestCase
|
||||
* @dataProvider getValidRoles
|
||||
* @param string $role
|
||||
*/
|
||||
public function testConstraintWithValidRole($role)
|
||||
public function testConstraintWithValidRole($role): void
|
||||
{
|
||||
$constraint = new Role();
|
||||
$this->validator->validate($role, $constraint);
|
||||
$this->assertNoViolation();
|
||||
}
|
||||
|
||||
public function testNullIsInvalid()
|
||||
public function testNullIsInvalid(): void
|
||||
{
|
||||
$this->validator->validate(null, new Role(['message' => 'myMessage']));
|
||||
|
||||
@@ -86,7 +86,7 @@ class RoleValidatorTest extends ConstraintValidatorTestCase
|
||||
* @dataProvider getInvalidRoles
|
||||
* @param mixed $role
|
||||
*/
|
||||
public function testValidationError($role)
|
||||
public function testValidationError($role): void
|
||||
{
|
||||
$constraint = new Role([
|
||||
'message' => 'myMessage',
|
||||
|
||||
Reference in New Issue
Block a user