Kernel Tests: Deprecations

Created on 1 April 2024, about 1 year ago
Updated 23 April 2024, 12 months ago

Problem/Motivation

When I run kernel tests, I get these self deprecation notices:

Remaining self deprecation notices (15)

14x: Installing the table sequences with the method KernelTestBase::installSchema() is deprecated in drupal:10.2.0 and is removed from drupal:12.0.0. See https://www.drupal.org/node/3349345
1x in LinkCheckerLinkAccessTest::testLinkAccess from Drupal\Tests\linkchecker\Kernel
1x in LinkcheckerHtmlLinkExtractorTest::testHtmlExtractor from Drupal\Tests\linkchecker\Kernel
1x in LinkcheckerRedirectTest::testLinkcheckerRedirect from Drupal\Tests\linkchecker\Kernel
1x in LinkcheckerLinkLinkExtractorTest::testLinkExtractor from Drupal\Tests\linkchecker\Kernel
1x in LinkcheckerLinkExtractorServiceTest::testExternalUrls from Drupal\Tests\linkchecker\Kernel
...

1x: The Drupal\Tests\field\Traits\EntityReferenceTestTrait is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Instead, use \Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait. See https://www.drupal.org/node/3401941
1x in KernelTestSuite::suite from Drupal\Tests\TestSuites

Steps to reproduce

Run phpunit --testsuite="kernel" --group="linkchecker"

Proposed resolution

See referenced articles for each deprecation.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇨🇦Canada ryanrobinson_wlu

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024