PHPunit tests are failing on Drupal 11

Created on 15 May 2024, 6 months ago
Updated 19 June 2024, 5 months ago

Problem/Motivation

1) Drupal\Tests\config_ignore\Functional\ConfigIgnoreHookTest::testSettingsAlterHook
ArgumentCountError: Too few arguments to function Drupal\Core\Config\ConfigImporter::__construct(), 10 passed in /Users/user1/11.x/web/modules/contrib/config_ignore/tests/src/Functional/ConfigIgnoreBrowserTestBase.php on line 40 and exactly 11 expected

/Users/user1/11.x/web/core/lib/Drupal/Core/Config/ConfigImporter.php:204
/Users/user1/11.x/web/modules/contrib/config_ignore/tests/src/Functional/ConfigIgnoreBrowserTestBase.php:40
/Users/user1/11.x/web/modules/contrib/config_ignore/tests/src/Functional/ConfigIgnoreHookTest.php:31
/Users/user1/11.x/vendor/phpunit/phpunit/src/Framework/TestResult.php:729

2) Drupal\Tests\config_ignore\Functional\ConfigIgnoreTest::testValidateIgnoring
ArgumentCountError: Too few arguments to function Drupal\Core\Config\ConfigImporter::__construct(), 10 passed in /Users/user1/11.x/web/modules/contrib/config_ignore/tests/src/Functional/ConfigIgnoreBrowserTestBase.php on line 40 and exactly 11 expected

/Users/user1/11.x/web/core/lib/Drupal/Core/Config/ConfigImporter.php:204
/Users/user1/11.x/web/modules/contrib/config_ignore/tests/src/Functional/ConfigIgnoreBrowserTestBase.php:40
/Users/user1/11.x/web/modules/contrib/config_ignore/tests/src/Functional/ConfigIgnoreTest.php:77
/Users/user1/11.x/vendor/phpunit/phpunit/src/Framework/TestResult.php:729

3) Drupal\Tests\config_ignore\Functional\ConfigIgnoreTest::testValidateIgnoringWithWildcard
ArgumentCountError: Too few arguments to function Drupal\Core\Config\ConfigImporter::__construct(), 10 passed in /Users/user1/11.x/web/modules/contrib/config_ignore/tests/src/Functional/ConfigIgnoreBrowserTestBase.php on line 40 and exactly 11 expected

/Users/user1/11.x/web/core/lib/Drupal/Core/Config/ConfigImporter.php:204
/Users/user1/11.x/web/modules/contrib/config_ignore/tests/src/Functional/ConfigIgnoreBrowserTestBase.php:40
/Users/user1/11.x/web/modules/contrib/config_ignore/tests/src/Functional/ConfigIgnoreTest.php:98
/Users/user1/11.x/vendor/phpunit/phpunit/src/Framework/TestResult.php:729

4) Drupal\Tests\config_ignore\Functional\ConfigIgnoreTest::testValidateForceImporting
ArgumentCountError: Too few arguments to function Drupal\Core\Config\ConfigImporter::__construct(), 10 passed in /Users/user1/11.x/web/modules/contrib/config_ignore/tests/src/Functional/ConfigIgnoreBrowserTestBase.php on line 40 and exactly 11 expected

/Users/user1/11.x/web/core/lib/Drupal/Core/Config/ConfigImporter.php:204
/Users/user1/11.x/web/modules/contrib/config_ignore/tests/src/Functional/ConfigIgnoreBrowserTestBase.php:40
/Users/user1/11.x/web/modules/contrib/config_ignore/tests/src/Functional/ConfigIgnoreTest.php:121
/Users/user1/11.x/vendor/phpunit/phpunit/src/Framework/TestResult.php:729

5) Drupal\Tests\config_ignore\Functional\ConfigIgnoreTest::testValidateForceImportingWithWildcard
ArgumentCountError: Too few arguments to function Drupal\Core\Config\ConfigImporter::__construct(), 10 passed in /Users/user1/11.x/web/modules/contrib/config_ignore/tests/src/Functional/ConfigIgnoreBrowserTestBase.php on line 40 and exactly 11 expected

/Users/user1/11.x/web/core/lib/Drupal/Core/Config/ConfigImporter.php:204
/Users/user1/11.x/web/modules/contrib/config_ignore/tests/src/Functional/ConfigIgnoreBrowserTestBase.php:40
/Users/user1/11.x/web/modules/contrib/config_ignore/tests/src/Functional/ConfigIgnoreTest.php:145
/Users/user1/11.x/vendor/phpunit/phpunit/src/Framework/TestResult.php:729

6) Drupal\Tests\config_ignore\Functional\ConfigIgnoreTest::testValidateImportingWithIgnoredSubKeys
ArgumentCountError: Too few arguments to function Drupal\Core\Config\ConfigImporter::__construct(), 10 passed in /Users/user1/11.x/web/modules/contrib/config_ignore/tests/src/Functional/ConfigIgnoreBrowserTestBase.php on line 40 and exactly 11 expected

/Users/user1/11.x/web/core/lib/Drupal/Core/Config/ConfigImporter.php:204
/Users/user1/11.x/web/modules/contrib/config_ignore/tests/src/Functional/ConfigIgnoreBrowserTestBase.php:40
/Users/user1/11.x/web/modules/contrib/config_ignore/tests/src/Functional/ConfigIgnoreTest.php:179
/Users/user1/11.x/vendor/phpunit/phpunit/src/Framework/TestResult.php:729

7) Drupal\Tests\config_ignore\Functional\ConfigIgnoreTest::testImportMissingConfig
ArgumentCountError: Too few arguments to function Drupal\Core\Config\ConfigImporter::__construct(), 10 passed in /Users/user1/11.x/web/modules/contrib/config_ignore/tests/src/Functional/ConfigIgnoreBrowserTestBase.php on line 40 and exactly 11 expected

/Users/user1/11.x/web/core/lib/Drupal/Core/Config/ConfigImporter.php:204
/Users/user1/11.x/web/modules/contrib/config_ignore/tests/src/Functional/ConfigIgnoreBrowserTestBase.php:40
/Users/user1/11.x/web/modules/contrib/config_ignore/tests/src/Functional/ConfigIgnoreTest.php:205
/Users/user1/11.x/vendor/phpunit/phpunit/src/Framework/TestResult.php:729

Steps to reproduce

Run phpunit 10 over D11 site

🐛 Bug report
Status

RTBC

Version

3.0

Component

Code

Created by

🇮🇳India ankitv18

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024