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 (18)

17x: 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 β†’
4x in EntityReferenceRevisionsDestinationTest::testGetEntityTypeId from Drupal\Tests\entity_reference_revisions\Kernel\Plugin\migrate\destination
4x in EntityReferenceRevisionsDestinationTest::testGetEntity from Drupal\Tests\entity_reference_revisions\Kernel\Plugin\migrate\destination
2x in EntityReferenceRevisionsDestinationTest::testGetEntityForceRevision from Drupal\Tests\entity_reference_revisions\Kernel\Plugin\migrate\destination
1x in EntityReferenceRevisionsSaveTest::testNeedsSave from Drupal\Tests\entity_reference_revisions\Kernel
1x in EntityReferenceRevisionsSaveTest::testSaveNewEntity from Drupal\Tests\entity_reference_revisions\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
1x in KernelTestSuite::suite from Drupal\Tests\TestSuites

Steps to reproduce

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

Proposed resolution

Change the tests as described in the referenced articles.

πŸ› Bug report
Status

Active

Version

1.11

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