Commit ed885134 authored by catch's avatar catch

Issue #3102899 by mondrake: ViewExecutableTest uses a mocked argument callback...

Issue #3102899 by mondrake: ViewExecutableTest uses a mocked argument callback wrongly (and fails in PHPUnit8)
parent 58bec68a
......@@ -362,9 +362,7 @@ public function testAddHandler() {
foreach (['field', 'filter', 'argument', 'sort'] as $handler_type) {
$display->expects($this->atLeastOnce())
->method('setOption')
->with($this->callback(function ($argument) {
return $argument;
}), [
->with($this->anything(), [
'test_field' => [
'id' => 'test_field',
'table' => 'test_entity',
......@@ -405,9 +403,7 @@ public function testAddHandlerWithEntityField() {
foreach (['field', 'filter', 'argument', 'sort'] as $handler_type) {
$display->expects($this->atLeastOnce())
->method('setOption')
->with($this->callback(function ($argument) {
return $argument;
}), [
->with($this->anything(), [
'test_field' => [
'id' => 'test_field',
'table' => 'test_entity',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment