fix bootstrap/classloading
Compare changes
The main points here are:
$loader->add('Civi')
etc.@group mink
. But that was thwarted because if you have "regular" unit tests under Civi, then when they run they still load/parse the mink tests in order to even determine what group they are in, so that loading fails since it's a different bootstrap.
So the typical command for running a test would now be:
cd /path/to/your/extension
/path/to/drupal/project/root/vendor/bin/phpunit -c phpunit.mink.xml [--group mink] tests/phpunit/Mink