It seems that Drush Test Traits covers this use case - https://github.com/drush-ops/drush/tree/master/tests#drush-test-traits
Here is an example of it being used in a test - https://github.com/drush-ops/example-drush-extension/blob/master/tests/E...
Hi James,
A recent update to `1.0.x-dev` has introduced the recommended method of `setSite`.
You can now call `$this->setSite('my_site')` before the test attempts to load any `settings.php` file.
Let me know how you get on!
Thanks!
Hi Adam,
Thanks for trying out the module!
I've pushed all the up to date code to the `1.0.x-dev` branch, which includes using the `Drupal\Core\Extension\Dependency` value object in core to determine the dependency.
Hopefully now the module is aware of more than just the `drupal:` prefix!
Let me know how you get on.
Thanks!
Hi Adam,
Thanks for trying out the module!
I've pushed all the up to date code to the `1.0.x-dev` branch, which includes using the `Drupal\Core\Extension\Dependency` value object in core to determine the dependency.
Hopefully now the module is aware of more than just the `drupal:` prefix!
Let me know how you get on.
Thanks!
aidenbradley → created an issue.