X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Fviews_ui%2Ftests%2Fsrc%2FFunctional%2FDisplayPathTest.php;fp=web%2Fcore%2Fmodules%2Fviews_ui%2Ftests%2Fsrc%2FFunctional%2FDisplayPathTest.php;h=7291dc2e8de8413a389238b3f3c0b3b691c50a4e;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=f8e58e719c70f79c8d9b62f91fabba76a26ce8dd;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/web/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php b/web/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php index f8e58e719..7291dc2e8 100644 --- a/web/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php +++ b/web/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php @@ -4,7 +4,7 @@ namespace Drupal\Tests\views_ui\Functional; use Drupal\Core\Menu\MenuTreeParameters; use Drupal\menu_link_content\Entity\MenuLinkContent; -use Drupal\system\Tests\Cache\AssertPageCacheContextsAndTagsTrait; +use Drupal\Tests\system\Functional\Cache\AssertPageCacheContextsAndTagsTrait; /** * Tests the UI of generic display path plugin. @@ -13,6 +13,7 @@ use Drupal\system\Tests\Cache\AssertPageCacheContextsAndTagsTrait; * @see \Drupal\views\Plugin\views\display\PathPluginBase */ class DisplayPathTest extends UITestBase { + use AssertPageCacheContextsAndTagsTrait; protected function setUp($import_test_views = TRUE) { @@ -165,7 +166,7 @@ class DisplayPathTest extends UITestBase { unset($menu_options['@attributes']); // Convert array to make the next assertion possible. - $menu_options = array_map(function($element) { + $menu_options = array_map(function ($element) { return $element->getText(); }, $menu_options);