function AttachedAssetsTest::testDeprecatedDrupalJsDefaults

Tests deprecated drupal_js_defaults() function.

@group legacy

File

core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php, line 495

Class

AttachedAssetsTest
Tests #attached assets: attached asset libraries and JavaScript settings.

Namespace

Drupal\KernelTests\Core\Asset

Code

public function testDeprecatedDrupalJsDefaults() {
    $this->expectDeprecation('drupal_js_defaults() is deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. No direct replacement is provided. See https://www.drupal.org/node/3197679');
    $this->assertIsArray(drupal_js_defaults());
}

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