function DeprecatedBackboneTest::testBackboneDeprecation

Tests that the Backbone library is deprecated.

File

core/tests/Drupal/KernelTests/Core/Asset/DeprecatedBackboneTest.php, line 33

Class

DeprecatedBackboneTest
Checks the deprecation status of Backbone.

Namespace

Drupal\KernelTests\Core\Asset

Code

public function testBackboneDeprecation() {
    $this->libraryDiscovery
        ->getLibraryByName('core', 'backbone');
    $this->expectDeprecation("The core/backbone asset library is deprecated in Drupal 9.4.0 and will be removed in Drupal 10.0.0.");
}

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