function DeprecatedJqueryFormTest::testJqueryFormDeprecation

Tests that the jQuery.form library is deprecated.

File

core/tests/Drupal/KernelTests/Core/Asset/DeprecatedJqueryFormTest.php, line 32

Class

DeprecatedJqueryFormTest
Checks the deprecation status of jQuery.form.

Namespace

Drupal\KernelTests\Core\Asset

Code

public function testJqueryFormDeprecation() {
    $this->libraryDiscovery
        ->getLibraryByName('core', 'jquery.form');
    $this->expectDeprecation("The core/jquery.form 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.