function DrupalWebTestCase::drupalGetSettings

Gets the value of the Drupal.settings JavaScript variable for the currently loaded page.

3 calls to DrupalWebTestCase::drupalGetSettings()
AJAXFrameworkTestCase::testAJAXRender in modules/simpletest/tests/ajax.test
Test that ajax_render() returns JavaScript settings generated during the page request.
AJAXFrameworkTestCase::testLazyLoad in modules/simpletest/tests/ajax.test
Test that new JavaScript and CSS files added during an AJAX request are returned.
DateTimeFunctionalTest::testDateFormatConfiguration in modules/system/system.test
Test date format configuration.

File

modules/simpletest/drupal_web_test_case.php, line 3205

Class

DrupalWebTestCase
Test case for typical Drupal tests.

Code

protected function drupalGetSettings() {
    return $this->drupalSettings;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.