Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wbloszyk committed May 23, 2020
1 parent 75883ee commit 4f459f9
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
4 changes: 3 additions & 1 deletion tests/Type/DateRangePickerTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ public function testGetDefaultOptions()
'dp_use_current' => false,
],
'field_type' => DatePickerType::class,
], $options);
],
$options
);
}
}
4 changes: 3 additions & 1 deletion tests/Type/DateRangeTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ public function testGetDefaultOptions()
'field_options_start' => [],
'field_options_end' => [],
'field_type' => DateType::class,
], $options);
],
$options
);
}
}
4 changes: 3 additions & 1 deletion tests/Type/DateTimeRangePickerTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ public function testGetDefaultOptions()
'dp_use_current' => false,
],
'field_type' => DateTimePickerType::class,
], $options);
],
$options
);
}
}
7 changes: 4 additions & 3 deletions tests/Type/EqualTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ public function testGetDefaultOptions()

$mock->expects($this->exactly(0))
->method('trans')
->willReturnCallback(static function ($arg) {
return $arg;
}
->willReturnCallback(
static function ($arg) {
return $arg;
}
);

$type = new EqualType($mock);
Expand Down
6 changes: 4 additions & 2 deletions tests/Validator/Constraints/InlineConstraintTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ public function testSerializingWarningIsFalseWithServiceIsNotString()
$this->expectExceptionMessage(
'You are using a closure with the `InlineConstraint`, this constraint'.
' cannot be serialized. You need to re-attach the `InlineConstraint` on each request.'.
' Once done, you can set the `serializingWarning` option to `true` to avoid this message.');
' Once done, you can set the `serializingWarning` option to `true` to avoid this message.'
);

new InlineConstraint(['service' => 1, 'method' => 'foo', 'serializingWarning' => false]);
}
Expand All @@ -121,7 +122,8 @@ public function testSerializingWarningIsFalseWithMethodIsNotString()
$this->expectExceptionMessage(
'You are using a closure with the `InlineConstraint`, this constraint'.
' cannot be serialized. You need to re-attach the `InlineConstraint` on each request.'.
' Once done, you can set the `serializingWarning` option to `true` to avoid this message.');
' Once done, you can set the `serializingWarning` option to `true` to avoid this message.'
);

new InlineConstraint(['service' => 'foo', 'method' => 1, 'serializingWarning' => false]);
}
Expand Down

0 comments on commit 4f459f9

Please sign in to comment.