diff --git a/core/tests/Drupal/FunctionalJavascriptTests/JavascriptTestBase.php b/core/tests/Drupal/FunctionalJavascriptTests/JavascriptTestBase.php index 0d3da18..e6689ce 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/JavascriptTestBase.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/JavascriptTestBase.php @@ -144,17 +144,23 @@ public function assertSession($name = NULL) { } /** - * Gets Drupal settings from session and parses into a PHP array. + * Gets the current Drupal javascript settings and parses into an array. + * + * Unlike BrowserTestBase::getDrupalSettings(), this implementation reads the + * current values of drupalSettings, capturing all changes made via javascript + * after the page was loaded. * * @return array - * The Drupal settings array. + * The Drupal javascript settings array. + * + * @see \Drupal\Tests\BrowserTestBase::getDrupalSettings() */ protected function getDrupalSettings() { $script = <<