[Drupal 12.x] Kernel Testing Deprecations

Created on 5 March 2024, 11 months ago
Updated 27 July 2024, 6 months ago

Problem/Motivation

Running kernel tests, I get these deprecation warnings:

OK, but incomplete, skipped, or risky tests!
Tests: 69, Assertions: 626, Skipped: 5.

Remaining self deprecation notices (37)

  36x: 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 LinkitEditorLinkDialogTest::testAdd from Drupal\Tests\linkit\Kernel
    1x in LinkitEditorLinkDialogTest::testEditWithDataAttributes from Drupal\Tests\linkit\Kernel
    1x in LinkitEditorLinkDialogTest::testEditWithoutDataAttributes from Drupal\Tests\linkit\Kernel
    1x in EntityMatcherDeriverTest::testDeriver from Drupal\Tests\linkit\Kernel
    1x in TermMatcherTest::testTermMatcherWidthDefaultConfiguration from Drupal\Tests\linkit\Kernel\Matchers
    ...

  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 kernel tests, e.g.

phpunit --testsuite="kernel" --group="linkit"

πŸ› Bug report
Status

Active

Version

6.1

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