Release 2.25 (#5109)
This commit is contained in:
@@ -36,19 +36,19 @@ class UserValidatorTest extends ConstraintValidatorTestCase
|
||||
{
|
||||
$this->expectException(UnexpectedTypeException::class);
|
||||
|
||||
$this->validator->validate('foo', new NotBlank()); // @phpstan-ignore-line
|
||||
$this->validator->validate('foo', new NotBlank()); // @phpstan-ignore argument.type
|
||||
}
|
||||
|
||||
public function testNullIsValid(): void
|
||||
{
|
||||
$this->validator->validate(null, new User(['message' => 'myMessage'])); // @phpstan-ignore-line
|
||||
$this->validator->validate(null, new User(['message' => 'myMessage'])); // @phpstan-ignore argument.type
|
||||
|
||||
$this->assertNoViolation();
|
||||
}
|
||||
|
||||
public function testNonUserIsValid(): void
|
||||
{
|
||||
$this->validator->validate(new TestUserEntity(), new User(['message' => 'myMessage'])); // @phpstan-ignore-line
|
||||
$this->validator->validate(new TestUserEntity(), new User(['message' => 'myMessage'])); // @phpstan-ignore argument.type
|
||||
|
||||
$this->assertNoViolation();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user