function JavaScriptTestCase::testSetHasJsCookie
Tests that the set_has_js_cookie variable is reflected in Drupal.settings.
File
-
modules/
simpletest/ tests/ common.test, line 2044
Class
- JavaScriptTestCase
- Tests for the JavaScript system.
Code
function testSetHasJsCookie() {
$this->drupalGet('');
$this->assertRaw('"setHasJsCookie":0', 'setHasJsCookie set to 0 by default.');
variable_set('set_has_js_cookie', TRUE);
$this->drupalGet('');
$this->assertRaw('"setHasJsCookie":1', 'setHasJsCookie set to 1 when set_has_js_cookie is set to TRUE.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.