Kernel Tests: Deprecations

Created on 1 April 2024, about 1 year ago
Updated 18 April 2024, about 1 year ago

Problem/Motivation

When I run kernel tests, I get these deprecation notices:

Unsilenced deprecation notices (4)

3x: trim(): Passing null to parameter #1 ($string) of type string is deprecated
3x in QueryPathXmlParserTest::testImportWithBlankSource from Drupal\Tests\feeds_ex\Kernel\Feeds\Parser

1x: Return type of QueryPath\QueryPathIterator::current() should either be compatible with IteratorIterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
1x in QueryPathXmlParserTest::testImportWithBlankSource from Drupal\Tests\feeds_ex\Kernel\Feeds\Parser

Remaining self deprecation notices (1)

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 phpunit --testsuite="kernel" --group="feeds_ex"

🐛 Bug report
Status

Closed: duplicate

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