projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website]
/
web
/
core
/
modules
/
views
/
tests
/
src
/
Unit
/
Plugin
/
field
/
FieldPluginBaseTest.php
diff --git
a/web/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php
b/web/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php
index e8ff8d7d965694833c2f2b9c710226bbaeb466ad..71ab347aa5b4c638aa192424321d0e865cfde0e6 100644
(file)
--- a/
web/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php
+++ b/
web/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php
@@
-548,7
+548,7
@@
class FieldPluginBaseTest extends UnitTestCase {
'#type' => 'inline_template',
'#template' => 'test-path/' . explode('/', $path)[1],
'#context' => ['foo' => 123],
'#type' => 'inline_template',
'#template' => 'test-path/' . explode('/', $path)[1],
'#context' => ['foo' => 123],
- '#post_render' => [function() {}],
+ '#post_render' => [function
() {}],
];
$this->renderer->expects($this->once())
];
$this->renderer->expects($this->once())
@@
-612,7
+612,7
@@
class FieldPluginBaseTest extends UnitTestCase {
'#type' => 'inline_template',
'#template' => $path,
'#context' => ['foo' => $context['context_path']],
'#type' => 'inline_template',
'#template' => $path,
'#context' => ['foo' => $context['context_path']],
- '#post_render' => [function() {}],
+ '#post_render' => [function
() {}],
];
$this->renderer->expects($this->once())
];
$this->renderer->expects($this->once())
@@
-740,7
+740,7
@@
class FieldPluginBaseTest extends UnitTestCase {
'#type' => 'inline_template',
'#template' => $test_class,
'#context' => $tokens,
'#type' => 'inline_template',
'#template' => $test_class,
'#context' => $tokens,
- '#post_render' => [function() {}],
+ '#post_render' => [function
() {}],
];
// We're not testing the token rendering itself, just that the function
];
// We're not testing the token rendering itself, just that the function
@@
-775,7
+775,9
@@
class FieldPluginBaseTestField extends FieldPluginBase {
namespace Drupal\views\Plugin\views\field;
if (!function_exists('base_path')) {
namespace Drupal\views\Plugin\views\field;
if (!function_exists('base_path')) {
+
function base_path() {
return '/';
}
function base_path() {
return '/';
}
+
}
}