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
/
node
/
tests
/
src
/
Functional
/
Views
/
PathPluginTest.php
diff --git
a/web/core/modules/node/tests/src/Functional/Views/PathPluginTest.php
b/web/core/modules/node/tests/src/Functional/Views/PathPluginTest.php
index 3cb4e372c9c053dd42dcb1d3556708004cf611e1..d8d088d978ac2f6dfcde682866cfca9259915bd0 100644
(file)
--- a/
web/core/modules/node/tests/src/Functional/Views/PathPluginTest.php
+++ b/
web/core/modules/node/tests/src/Functional/Views/PathPluginTest.php
@@
-58,12
+58,18
@@
class PathPluginTest extends NodeTestBase {
}
/**
}
/**
- * Tests the node path plugin.
+ * Tests the node path plugin
functionality when converted to entity link
.
*/
public function testPathPlugin() {
/** @var \Drupal\Core\Render\RendererInterface $renderer */
$renderer = $this->container->get('renderer');
$view = Views::getView('test_node_path_plugin');
*/
public function testPathPlugin() {
/** @var \Drupal\Core\Render\RendererInterface $renderer */
$renderer = $this->container->get('renderer');
$view = Views::getView('test_node_path_plugin');
+
+ // The configured deprecated node path plugin should be converted to the
+ // entity link plugin.
+ $field = $view->getHandler('page_1', 'field', 'path');
+ $this->assertEqual('entity_link', $field['plugin_id']);
+
$view->initDisplay();
$view->setDisplay('page_1');
$view->initStyle();
$view->initDisplay();
$view->setDisplay('page_1');
$view->initStyle();