I run phpunit with core/tests/bootstrap.php in my phpunit.xml files in a couple of modules.

This now fails because composerRequireDrupal8() is added to both vendor/composer/autoload_real.php and core/vendor/composer/autoload_real.php.

This might be similar to #2563383: composer drupal-install needs the old core/vendor/autoload.php to work. I don't see how this can be fixed with vendor and core/vendor existing.

Comments

mradcliffe created an issue. See original summary.

mradcliffe’s picture

Status: Active » Closed (works as designed)

Well, shoot. This happens if you run core/vendor/bin/phpunit instead of vendor/bin/phpunit

bojanz’s picture

We have a note in the README:

Note that once installation has completed you can run phpunit only from the root:
`./vendor/bin/phpunit -c core`