Drupal\Tests\ComposerIntegrationTest assumes there is a composer.json in DRUPAL_ROOT

Created on 4 August 2015, almost 9 years ago
Updated 9 April 2024, 3 months ago

Problem/Motivation

If you move the example ./composer.json out of the webroot, Unit Tests fail:

Drupal\Tests\ComposerIntegrationTest::testComposerJson
file_get_contents(docroot/composer.json): failed to open stream: No such file or directory

docroot/core/tests/Drupal/Tests/ComposerIntegrationTest.php:62

Proposed resolution

Since ./composer.json is an example file (like example.gitignore), then it should be excluded from testing since it has no function to Drupal what-so-ever.

Remaining tasks

  1. Wirte Patch

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated 1 minute ago

Created by

πŸ‡ΊπŸ‡ΈUnited States davidwbarratt

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.69.0 2024