Fix ConfigEventsTest::testConfigImportEvents for Drupal 10.2.x

Created on 21 February 2024, 9 months ago
Updated 31 May 2024, 6 months ago

Problem/Motivation

Drupal\Tests\eca_config\Kernel\ConfigEventsTest::testConfigImportEvents
ArgumentCountError: Too few arguments to function Drupal\Core\Config\Importer\MissingContentEvent::__construct(), 1 passed in /builds/project/eca/modules/config/tests/src/Kernel/ConfigEventsTest.php on line 281 and exactly 2 expected
/builds/project/eca/web/core/lib/Drupal/Core/Config/Importer/MissingContentEvent.php:30
/builds/project/eca/modules/config/tests/src/Kernel/ConfigEventsTest.php:281
/builds/project/eca/vendor/phpunit/phpunit/src/Framework/TestResult.php:728

Proposed resolution

MissingContentEvent::__construct() now requires the ConfigImporter as a second argument.

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇪Germany jurgenhaas Gottmadingen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024