I installed with Drupal with Composer (using drupal-scaffold) with Drupal files placed inside the web directory. When I run unit tests, two of them fail because Drupal expects to find the composer.json file inside the web directory whereas in my case composer.json is in the project root (which is obvious place for it).
Is this an issue with my configuration, or is it a problem with unit tests that make wrong assumptions?
The failing tests are
Drupal\Tests\ComposerIntegrationTest::testComposerLockHash. Both fail with the following error message.
file_get_contents(web/composer.json): failed to open stream: No such file or directory