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.
* @see \Drupal\views\Plugin\views\display\PathPluginBase
*/
class DisplayPathTest extends UITestBase {
+
use AssertPageCacheContextsAndTagsTrait;
protected function setUp($import_test_views = TRUE) {
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);