Errors encountered after running tests

Created on 1 February 2022, over 2 years ago
Updated 23 May 2023, about 1 year ago

Problem/Motivation

After cloning the module and running tests three errors appeared:

Testing /app/modules/contrib/entity_legal/tests
EREE.                                                               5 / 5 (100%)F

Time: 00:02.929, Memory: 12.00 MB

There were 3 errors:

1) Drupal\Tests\entity_legal\Functional\PostUpdateTest::testPostUpdateTitlePattern
require(compress.zlib:///app/core/modules/system/tests/fixtures/update/drupal-8.6.0.bare.testing.php.gz): failed to open stream: operation failed

/app/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php:213
/app/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php:213
/app/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php:192
/app/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php:161
/app/vendor/phpunit/phpunit/src/Framework/TestResult.php:726

2) Drupal\Tests\entity_legal\Functional\RedirectMethodTest::testMessageDisplay
Drupal\Core\Extension\InfoParserException: The 'core_version_requirement' constraint (9.3.3) requires the 'core' key not be set in modules/contrib/entity_legal/tests/modules/entity_legal_test/entity_legal_test.info.yml

/app/core/lib/Drupal/Core/Extension/InfoParserDynamic.php:88
/app/core/lib/Drupal/Core/Extension/InfoParser.php:22
/app/core/includes/module.inc:90
/app/core/includes/install.inc:1132
/app/core/includes/install.core.inc:1527
/app/core/includes/install.core.inc:464
/app/core/includes/install.core.inc:116
/app/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php:299
/app/core/tests/Drupal/Tests/BrowserTestBase.php:554
/app/core/tests/Drupal/Tests/BrowserTestBase.php:378
/app/vendor/phpunit/phpunit/src/Framework/TestResult.php:726

3) Drupal\Tests\entity_legal\Functional\UpdateTest::testUpdate8200
require(compress.zlib:///app/core/modules/system/tests/fixtures/update/drupal-8.6.0.bare.testing.php.gz): failed to open stream: operation failed

/app/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php:213
/app/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php:213
/app/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php:192
/app/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php:161
/app/vendor/phpunit/phpunit/src/Framework/TestResult.php:726

--

There was 1 failure:

1) Drupal\Tests\entity_legal\Kernel\SingleLegalDocumentPublishedVersionConstraintTest::testBundleUniqueFieldValue
Failed asserting that '0' is false.

/app/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:121
/app/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:55
/app/modules/contrib/entity_legal/tests/src/Kernel/SingleLegalDocumentPublishedVersionConstraintTest.php:53
/app/vendor/phpunit/phpunit/src/Framework/TestResult.php:726

--

There was 1 risky test:

1) Drupal\Tests\entity_legal\Functional\PostUpdateTest::testPostUpdateTitlePattern
This test did not perform any assertions

/app/core/tests/Drupal/Tests/Listeners/DrupalListener.php:127
/app/vendor/phpunit/phpunit/src/Framework/TestResult.php:450
/app/vendor/phpunit/phpunit/src/Util/PHP/AbstractPhpProcess.php:377
/app/vendor/phpunit/phpunit/src/Util/PHP/AbstractPhpProcess.php:187
/app/vendor/phpunit/phpunit/src/Framework/TestSuite.php:677
/app/vendor/phpunit/phpunit/src/Framework/TestSuite.php:677
/app/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:670
/app/vendor/phpunit/phpunit/src/TextUI/Command.php:143
/app/vendor/phpunit/phpunit/src/TextUI/Command.php:96
phpvfscomposer:///app/vendor/phpunit/phpunit/phpunit:97

Steps to reproduce

Run the tests on your local environment in version 3.0.x.

πŸ› Bug report
Status

Closed: duplicate

Version

3.0

Component

Code

Created by

πŸ‡΅πŸ‡ΉPortugal mariaisp

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.

  • πŸ‡·πŸ‡΄Romania claudiu.cristea Arad πŸ‡·πŸ‡΄

    This was already fixed in 4.0.0-alpha1. When upgrading to 4.0.0-alpha1 read carefully the release notes. The 3.0.x branch is not supported anymore. Closing.

Production build 0.69.0 2024