KernelTestBase::installSchema Deprecated

Created on 5 March 2024, 4 months ago
Updated 7 April 2024, 3 months ago

Problem/Motivation

Running kernel tests, I get these deprecation warnings:

OK (10 tests, 187 assertions)

Remaining self deprecation notices (10)

  9x: 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 RelationshipManagerTest::testRelationshipConstraints from Drupal\Tests\ctools\Kernel
    1x in RelationshipManagerTest::testRelationshipPluginAvailability from Drupal\Tests\ctools\Kernel
    1x in TypedDataEntityRelationshipPluginTest::testRelationshipName from Drupal\Tests\ctools\Kernel
    1x in TypedDataEntityRelationshipPluginTest::testRelationship from Drupal\Tests\ctools\Kernel
    1x in TypedDataRelationshipPluginTest::testRelationshipName from Drupal\Tests\ctools\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

The latter one I see is already reported in https://www.drupal.org/project/ctools/issues/3415904 📌 EntityReferenceTestTrait deprecated RTBC so this issue can focus on the first one.

Steps to reproduce

Run kernel tests, e.g.

phpunit --testsuite="kernel" --group="CTools"

🐛 Bug report
Status

Closed: won't fix

Version

3.14

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