5.0.x Branch Tests Failing

Created on 1 December 2022, over 2 years ago
Updated 26 January 2023, about 2 years ago

Problem/Motivation

5.0.x branch tests are failing (D10.0.x):

$ ../vendor/phpunit/phpunit/phpunit -c core/ modules/contrib/features/ --verbose
PHPUnit 9.5.26 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.1.8
Configuration: /var/www/html/web/core/phpunit.xml.dist

Testing /var/www/html/web/modules/contrib/features
..E....SS................E....................................... 65 / 68 ( 95%)
...                                                               68 / 68 (100%)

Time: 02:51.166, Memory: 10.00 MB

There were 2 errors:

1) Drupal\Tests\features_ui\Functional\FeaturesCreateUiTest::testCreateFeaturesUi
Behat\Mink\Exception\ElementNotFoundException: Form field with id|name|label|value "user_role[sources][selected][authenticated]" not found.

/var/www/html/vendor/behat/mink/src/WebAssert.php:662
/var/www/html/web/core/tests/Drupal/Tests/UiHelperTrait.php:84
/var/www/html/web/modules/contrib/features/modules/features_ui/tests/src/Functional/FeaturesCreateUiTest.php:107
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:728

2) Drupal\Tests\features\Kernel\FeaturesGenerateTest::testExportWrite
Symfony\Component\DependencyInjection\Exception\RuntimeException: You have requested a synthetic service ("kernel"). The DIC does not know how to construct this service.

/var/www/html/vendor/symfony/dependency-injection/ContainerBuilder.php:986
/var/www/html/vendor/symfony/dependency-injection/ContainerBuilder.php:568
/var/www/html/vendor/symfony/dependency-injection/ContainerBuilder.php:513
/var/www/html/web/core/lib/Drupal.php:187
/var/www/html/web/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:37
/var/www/html/web/core/lib/Drupal/Core/Cache/MemoryBackend.php:109
/var/www/html/web/core/lib/Drupal/Core/Cache/UseCacheBackendTrait.php:71
/var/www/html/web/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php:226
/var/www/html/web/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php:182
/var/www/html/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryCachedTrait.php:22
/var/www/html/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php:132
/var/www/html/web/core/lib/Drupal/Core/Entity/EntityBase.php:372
/var/www/html/web/core/lib/Drupal/Core/Entity/EntityBase.php:151
/var/www/html/web/modules/contrib/features/src/FeaturesManager.php:1159
/var/www/html/web/modules/contrib/features/src/FeaturesManager.php:1229
/var/www/html/web/modules/contrib/features/src/FeaturesManager.php:253
/var/www/html/web/modules/contrib/features/src/FeaturesManager.php:788
/var/www/html/web/modules/contrib/features/src/FeaturesGenerator.php:179
/var/www/html/web/modules/contrib/features/src/FeaturesGenerator.php:147
/var/www/html/web/modules/contrib/features/tests/src/Kernel/FeaturesGenerateTest.php:160
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:728

--

There were 2 skipped tests:

1) Drupal\Tests\features\Kernel\Entity\FeaturesBundleIntegrationTest::testGetFullName
Not yet implemented

/var/www/html/web/modules/contrib/features/tests/src/Kernel/Entity/FeaturesBundleIntegrationTest.php:61
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:728

2) Drupal\Tests\features\Kernel\Entity\FeaturesBundleIntegrationTest::testGetShortName
Not yet implemented

/var/www/html/web/modules/contrib/features/tests/src/Kernel/Entity/FeaturesBundleIntegrationTest.php:68
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:728

Steps to reproduce

Run tests locally.

Proposed resolution

Fix tests.

Remaining tasks

  • Open MR.
  • Fix tests.

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Fixed

Version

5.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Chris Burge

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024