diff -u b/core/modules/views_ui/src/Tests/DisplayPathTest.php b/core/modules/views_ui/src/Tests/DisplayPathTest.php --- b/core/modules/views_ui/src/Tests/DisplayPathTest.php +++ b/core/modules/views_ui/src/Tests/DisplayPathTest.php @@ -62,6 +62,7 @@ * Tests that View paths are properly filtered for XSS. */ public function doPathXssFilterTest() { + global $base_path; $this->drupalGet('admin/structure/views/view/test_view'); $this->drupalPostForm(NULL, array(), 'Add Page'); $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_2/path', array('path' => 'malformed_path'), t('Apply')); @@ -69,7 +70,7 @@ $this->drupalPostForm('admin/structure/views/nojs/display/test_view/page_3/path', array('path' => ''), t('Apply')); $this->drupalPostForm('admin/structure/views/view/test_view', array(), t('Save')); $this->drupalGet('admin/structure/views'); - $this->assertRaw('/<object>malformed_path</object>, /<script>alert("hello");</script>', 'Two paths were filtered for XSS.'); + $this->assertRaw('/<object>malformed_path</object>, /<script>alert("hello");</script>', 'Two paths were filtered for XSS.'); } /**