More Drupal 9 deprecated code

Created on 26 January 2021, about 4 years ago
Updated 15 May 2023, almost 2 years ago

Problem/Motivation

Trying to upgrade a BLT Drupal project from version 8.9.13 to Drupal 9, and following recommendations from a Acquia Lightning Article, after reviewing Libraries API 8.x-3.0-beta1, I get the following warnings:

  • /libraries/src/Tests/LibrariesUnitTest.php (Line 12)

    Class Drupal\libraries\Tests\LibrariesUnitTest extends deprecated class Drupal\simpletest\KernelTestBase. Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\KernelTests\KernelTestBase instead.

  • /libraries/src/Tests/LibrariesWebTest.php (Line 13)

    Class Drupal\libraries\Tests\LibrariesWebTest extends deprecated class Drupal\simpletest\WebTestBase. Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Instead, use Drupal\Tests\BrowserTestBase. See https://www.drupal.org/node/3030340 . Replacement available from drupal:8.6.0.

  • /libraries/src/Tests/LibrariesWebTest.php (Line 45)

    Call to method setUp() of deprecated class Drupal\simpletest\WebTestBase. Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Instead, use Drupal\Tests\BrowserTestBase. See https://www.drupal.org/node/3030340 . Replacement available from drupal:8.6.0.

  • /libraries/tests/modules/libraries_test/libraries_test.info.yml

    Add core_version_requirement: ^8 || ^9 to designate that the module is compatible with Drupal 9. See https://drupal.org/node/3070687.

Feature request
Status

Closed: outdated

Component

Code

Created by

🇲🇽Mexico cristian100 Tepic Nayarit

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024