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"

CommentFileSizeAuthor
#5 3425830-5.patch652 bytesblade_ukraine

Issue fork linkit-3425830

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ryanrobinson_wlu created an issue. See original summary.

ryan-l-robinson’s picture

Issue summary: View changes
mark_fullmer’s picture

Title: Kernel Testing Deprecations » [Drupal 12.x] Kernel Testing Deprecations
Priority: Normal » Minor

ankitv18 made their first commit to this issue’s fork.

blade_ukraine’s picture

Version: 6.1.2 » 7.x-dev
StatusFileSize
new652 bytes

Here is a simple patch to fix that issue.

blade_ukraine’s picture

Status: Active » Needs review

rakesh.regar made their first commit to this issue’s fork.

mark_fullmer’s picture

Status: Needs review » Fixed

Thanks, everyone!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.