Kernel Tests: Deprecations

Created on 1 April 2024, 3 months ago

Problem/Motivation

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

Remaining self deprecation notices (21)

18x: 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 PathautoKernelTest::testGetSchemaAliasMaxLength from Drupal\Tests\pathauto\Kernel
1x in PathautoKernelTest::testPatternLoadByEntity from Drupal\Tests\pathauto\Kernel
1x in PathautoKernelTest::testSameTitleDifferentLanguages from Drupal\Tests\pathauto\Kernel
1x in PathautoKernelTest::testCleanString from Drupal\Tests\pathauto\Kernel
1x in PathautoKernelTest::testCleanAlias from Drupal\Tests\pathauto\Kernel
...

2x: The definition for the 'pathauto.pattern.e3py8j38.relationships' sequence declares the type of its items in a way that is deprecated in drupal:8.0.0 and is removed from drupal:11.0.0. See https://www.drupal.org/node/2442603 β†’
2x in PathautoKernelTest::testPatternLoadByEntity from Drupal\Tests\pathauto\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="pathauto"

πŸ› Bug report
Status

Active

Version

1.12

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada ryanrobinson_wlu

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

Comments & Activities

Production build 0.69.0 2024