Release 2.12 (#4609)
This commit is contained in:
@@ -44,14 +44,14 @@ class TimesheetZeroDurationValidatorTest extends ConstraintValidatorTestCase
|
||||
return new TimesheetZeroDurationValidator($config);
|
||||
}
|
||||
|
||||
public function testConstraintIsInvalid()
|
||||
public function testConstraintIsInvalid(): void
|
||||
{
|
||||
$this->expectException(UnexpectedTypeException::class);
|
||||
|
||||
$this->validator->validate(new Timesheet(), new NotBlank());
|
||||
}
|
||||
|
||||
public function testInvalidValueThrowsException()
|
||||
public function testInvalidValueThrowsException(): void
|
||||
{
|
||||
$this->expectException(UnexpectedTypeException::class);
|
||||
|
||||
@@ -70,7 +70,7 @@ class TimesheetZeroDurationValidatorTest extends ConstraintValidatorTestCase
|
||||
return $timesheet;
|
||||
}
|
||||
|
||||
public function testZeroDurationIsDisallowed()
|
||||
public function testZeroDurationIsDisallowed(): void
|
||||
{
|
||||
$timesheet = $this->prepareTimesheet();
|
||||
|
||||
@@ -82,7 +82,7 @@ class TimesheetZeroDurationValidatorTest extends ConstraintValidatorTestCase
|
||||
->assertRaised();
|
||||
}
|
||||
|
||||
public function testZeroDurationIsAllowed()
|
||||
public function testZeroDurationIsAllowed(): void
|
||||
{
|
||||
$this->validator = $this->createMyValidator(true);
|
||||
$this->validator->initialize($this->context);
|
||||
|
||||
Reference in New Issue
Block a user