Problem/Motivation

\Drupal\KernelTests\Core\Config\ConfigImporterTest::testIsInstallable() can cause deprecations on PHP 8.1.

Steps to reproduce

Run \Drupal\KernelTests\Core\Config\ConfigImporterTest::testIsInstallable() on PHP 8.1

Proposed resolution

Fix it so that config_test_no_status config entity has a UUID as is expected by all config entities.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

CommentFileSizeAuthor
#2 3240173-2.patch1.44 KBalexpott
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alexpott created an issue. See original summary.

alexpott’s picture

Status: Active » Needs review
FileSize
1.44 KB
andypost’s picture

Status: Needs review » Reviewed & tested by the community

Without patch

Unsilenced deprecation notices (1)

  1x: mb_strtolower(): Passing null to parameter #1 ($string) of type string is deprecated
    1x in ConfigImporterTest::testIsInstallable from Drupal\KernelTests\Core\Config

and no notice with the patch

  • catch committed b1b4ba3 on 9.3.x
    Issue #3240173 by alexpott, andypost: \Drupal\KernelTests\Core\Config\...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed b1b4ba3 and pushed to 9.3.x. Thanks!

Status: Fixed » Closed (fixed)

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