X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fviews%2Ftests%2Fsrc%2FUnit%2FViewExecutableTest.php;fp=web%2Fcore%2Fmodules%2Fviews%2Ftests%2Fsrc%2FUnit%2FViewExecutableTest.php;h=b6d3c912b01aecd72ebf2109971ca07dde72356a;hp=f30a19de679ca18f77bb4bf892b00fca56637abf;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/views/tests/src/Unit/ViewExecutableTest.php b/web/core/modules/views/tests/src/Unit/ViewExecutableTest.php index f30a19de6..b6d3c912b 100644 --- a/web/core/modules/views/tests/src/Unit/ViewExecutableTest.php +++ b/web/core/modules/views/tests/src/Unit/ViewExecutableTest.php @@ -311,7 +311,7 @@ class ViewExecutableTest extends UnitTestCase { ]; $this->assertEquals($expected, $view->buildThemeFunctions('test_hook')); - //Change the name of the display plugin and make sure that is in the array. + // Change the name of the display plugin and make sure that is in the array. $view->display_handler->display['display_plugin'] = 'default2'; $expected = [ @@ -362,14 +362,16 @@ class ViewExecutableTest extends UnitTestCase { foreach (['field', 'filter', 'argument', 'sort'] as $handler_type) { $display->expects($this->atLeastOnce()) ->method('setOption') - ->with($this->callback(function($argument) { + ->with($this->callback(function ($argument) { return $argument; - }), ['test_field' => [ - 'id' => 'test_field', - 'table' => 'test_entity', - 'field' => 'test_field', - 'plugin_id' => 'standard', - ]]); + }), [ + 'test_field' => [ + 'id' => 'test_field', + 'table' => 'test_entity', + 'field' => 'test_field', + 'plugin_id' => 'standard', + ], + ]); } foreach (['field', 'filter', 'argument', 'sort'] as $handler_type) { @@ -403,16 +405,18 @@ class ViewExecutableTest extends UnitTestCase { foreach (['field', 'filter', 'argument', 'sort'] as $handler_type) { $display->expects($this->atLeastOnce()) ->method('setOption') - ->with($this->callback(function($argument) { + ->with($this->callback(function ($argument) { return $argument; - }), ['test_field' => [ - 'id' => 'test_field', - 'table' => 'test_entity', - 'field' => 'test_field', - 'entity_type' => 'test_entity_type', - 'entity_field' => 'test_field', - 'plugin_id' => 'standard', - ]]); + }), [ + 'test_field' => [ + 'id' => 'test_field', + 'table' => 'test_entity', + 'field' => 'test_field', + 'entity_type' => 'test_entity_type', + 'entity_field' => 'test_field', + 'plugin_id' => 'standard', + ], + ]); } foreach (['field', 'filter', 'argument', 'sort'] as $handler_type) {