summaryrefslogtreecommitdiffstats
path: root/core/modules/system/lib/Drupal/system/Tests/Ajax/FrameworkTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/system/lib/Drupal/system/Tests/Ajax/FrameworkTest.php')
-rw-r--r--core/modules/system/lib/Drupal/system/Tests/Ajax/FrameworkTest.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/core/modules/system/lib/Drupal/system/Tests/Ajax/FrameworkTest.php b/core/modules/system/lib/Drupal/system/Tests/Ajax/FrameworkTest.php
index eced538..b70a1e6 100644
--- a/core/modules/system/lib/Drupal/system/Tests/Ajax/FrameworkTest.php
+++ b/core/modules/system/lib/Drupal/system/Tests/Ajax/FrameworkTest.php
@@ -31,10 +31,10 @@ class FrameworkTest extends AjaxTestBase {
*/
public function testAJAXRender() {
// Verify that settings command is generated when JavaScript settings are
- // set via drupal_add_js().
+ // set via _drupal_add_js().
$commands = $this->drupalGetAJAX('ajax-test/render');
$expected = new SettingsCommand(array('ajax' => 'test'), TRUE);
- $this->assertCommand($commands, $expected->render(), 'ajax_render() loads settings added with drupal_add_js().');
+ $this->assertCommand($commands, $expected->render(), 'ajax_render() loads settings added with _drupal_add_js().');
}
/**
@@ -46,7 +46,7 @@ class FrameworkTest extends AjaxTestBase {
// Expected commands, in a very specific order.
$expected_commands[0] = new SettingsCommand(array('ajax' => 'test'), TRUE);
- drupal_static_reset('drupal_add_css');
+ drupal_static_reset('_drupal_add_css');
$attached = array(
'#attached' => array(
'css' => array(
@@ -56,8 +56,8 @@ class FrameworkTest extends AjaxTestBase {
),
);
drupal_render($attached);
- $expected_commands[1] = new AddCssCommand(drupal_get_css(drupal_add_css(), TRUE));
- drupal_static_reset('drupal_add_js');
+ $expected_commands[1] = new AddCssCommand(drupal_get_css(_drupal_add_css(), TRUE));
+ drupal_static_reset('_drupal_add_js');
$attached = array(
'#attached' => array(
'js' => array(
@@ -66,8 +66,8 @@ class FrameworkTest extends AjaxTestBase {
),
);
drupal_render($attached);
- $expected_commands[2] = new PrependCommand('head', drupal_get_js('header', drupal_add_js(), TRUE));
- drupal_static_reset('drupal_add_js');
+ $expected_commands[2] = new PrependCommand('head', drupal_get_js('header', _drupal_add_js(), TRUE));
+ drupal_static_reset('_drupal_add_js');
$attached = array(
'#attached' => array(
'js' => array(
@@ -76,7 +76,7 @@ class FrameworkTest extends AjaxTestBase {
),
);
drupal_render($attached);
- $expected_commands[3] = new AppendCommand('body', drupal_get_js('footer', drupal_add_js(), TRUE));
+ $expected_commands[3] = new AppendCommand('body', drupal_get_js('footer', _drupal_add_js(), TRUE));
$expected_commands[4] = new HtmlCommand('body', 'Hello, world!');
// Load any page with at least one CSS file, at least one JavaScript file
@@ -123,7 +123,7 @@ class FrameworkTest extends AjaxTestBase {
'css' => drupal_get_path('module', 'system') . '/css/system.admin.css',
'js' => drupal_get_path('module', 'system') . '/system.js',
);
- // CSS files are stored by basename, see drupal_add_css().
+ // CSS files are stored by basename, see _drupal_add_css().
$expected_css_basename = drupal_basename($expected['css']);
// @todo D8: Add a drupal_css_defaults() helper function.