Kernel Tests: Deprecations

Created on 1 April 2024, 3 months ago
Updated 4 April 2024, 3 months ago

Problem/Motivation

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

Remaining self deprecation notices (12)

11x: Using a translatable string as a category for field type is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. See https://www.drupal.org/node/3375748 β†’
4x in WebformSubmissionStorageTest::testPurge from Drupal\Tests\webform\Kernel
1x in WebformSubmissionStorageTest::testStorage from Drupal\Tests\webform\Kernel
1x in WebformConditionTest::testConditions from Drupal\Tests\webform\Kernel
1x in WebformSubmissionEntityTest::testWebformMethods from Drupal\Tests\webform\Kernel\Entity
1x in WebformEntityTest::testWebformMethods from Drupal\Tests\webform\Kernel\Entity
...

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

Other deprecation notices (9)

9x: system_time_zones() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. This function is no longer used in Drupal core. Use \Drupal\Core\Datetime\TimeZoneFormHelper::getOptionsList(), \Drupal\Core\Datetime\TimeZoneFormHelper::getOptionsListByRegion() or \DateTimeZone::listIdentifiers() instead. See https://www.drupal.org/node/3023528 β†’
4x in WebformSubmissionStorageTest::testPurge from Drupal\Tests\webform\Kernel
1x in WebformSubmissionStorageTest::testStorage from Drupal\Tests\webform\Kernel
1x in WebformSubmissionEntityTest::testWebformMethods from Drupal\Tests\webform\Kernel\Entity
1x in WebformEntityTest::testWebformMethods from Drupal\Tests\webform\Kernel\Entity
1x in WebformEntityTest::testPaths from Drupal\Tests\webform\Kernel\Entity
...

Steps to reproduce

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

πŸ› Bug report
Status

Closed: outdated

Version

6.2

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