diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/JavaScriptTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/JavaScriptTest.php index c48ca70..565e35e 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/JavaScriptTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/JavaScriptTest.php @@ -81,11 +81,11 @@ function testAddFile() { function testAddSetting() { // Add a file in order to test default settings. drupal_add_library('system', 'drupalSettings'); - $javascript = drupal_add_js(); + $javascript = _drupal_add_js(); $last_settings = reset($javascript['settings']['data']); $this->assertTrue(array_key_exists('currentPath', $last_settings['path']), 'The current path JavaScript setting is set correctly.'); - $javascript = drupal_add_js(array('drupal' => 'rocks', 'dries' => 280342800), 'setting'); + $javascript = _drupal_add_js(array('drupal' => 'rocks', 'dries' => 280342800), 'setting'); $last_settings = end($javascript['settings']['data']); $this->assertEqual(280342800, $last_settings['dries'], 'JavaScript setting is set correctly.'); $this->assertEqual('rocks', $last_settings['drupal'], 'The other JavaScript setting is set correctly.');