Is it possible to use this extension in drupal module packages? #467
-
We've been using However we've tried using it when developing module packages and had little success, is it intended to be used in this context? It seems without setting a drupal root, the drupal-autoloader throws with thanks for your time. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@mad-briller is this on Drupal.org or your own continuous integration setup? How are you running your module's PHPUnit tests? That usually requires the module to be placed in a Drupal code base. You'd then add this to your Drupal site fixture. I've built a GitHub Action for this: https://github.com/bluehorndigital/setup-drupal. It really just comes down to modifying however you setup the root Drupal site for testing. |
Beta Was this translation helpful? Give feedback.
@mad-briller is this on Drupal.org or your own continuous integration setup? How are you running your module's PHPUnit tests? That usually requires the module to be placed in a Drupal code base. You'd then add this to your Drupal site fixture.
I've built a GitHub Action for this: https://github.com/bluehorndigital/setup-drupal. It really just comes down to modifying however you setup the root Drupal site for testing.