Kernel Tests: Deprecations

Created on 1 April 2024, about 1 year 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.71.5 2024