Pull merge.
[yaffs-website] / web / core / tests / Drupal / Tests / BrowserTestBase.php
index 6443b5a38493519f588e8c38f23718bfc92924a8..5417edc042358cc48e3e2bbfd776ecab448c8384 100644 (file)
@@ -676,7 +676,7 @@ abstract class BrowserTestBase extends TestCase {
    *   The JSON decoded drupalSettings value from the current page.
    */
   protected function getDrupalSettings() {
-    $html = $this->getSession()->getPage()->getHtml();
+    $html = $this->getSession()->getPage()->getContent();
     if (preg_match('@<script type="application/json" data-drupal-selector="drupal-settings-json">([^<]*)</script>@', $html, $matches)) {
       return Json::decode($matches[1]);
     }