Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / views / tests / src / Functional / Plugin / ViewsFormTest.php
index 3f6e1eca5fd52b573a05d63c4ed36cabdd6f244d..67c4cb035b78d3f14f1ecdc2e9559889e23f7ca9 100644 (file)
@@ -27,7 +27,7 @@ class ViewsFormTest extends ViewTestBase {
     $xpath = $this->cssSelect('.views-form form');
     $this->assertIdentical(count($xpath), 1, 'There is one views form on the page.');
     // Ensure we don't have nested form elements.
-    $result = (bool) preg_match('#<form[^>]*?>(?!/form).*<form#s', $this->getRawContent());
+    $result = (bool) preg_match('#<form[^>]*?>(?!/form).*<form#s', $this->getSession()->getPage()->getContent());
     $this->assertFalse($result, 'The views form element is not nested.');
   }