];
$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 = [
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) {
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) {