Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Sometimes test classes from test modules are needed in PHPunit tests, like eg test Plugins.
Right now though test module classes are not registered in bootstrap.php
Patch coming
Comments
Comment #1
ParisLiakos CreditAttribution: ParisLiakos commentedComment #2
ParisLiakos CreditAttribution: ParisLiakos commentedActually we need a check first, not all modules have this folder
Comment #3
ParisLiakos CreditAttribution: ParisLiakos commentedhrmmm better patch
Comment #4
dawehnerPerfect!
Comment #5
alexpottI think we should be adding a test here to prove we can now load test classes from test modules in PHPUnit tests....
Comment #6
ParisLiakos CreditAttribution: ParisLiakos commented@alexpott: i already have a test that fails without this here.this issue kinda waits for this one
#1957330-25: Make possible for parsers and fetchers to expose configuration through plugins
What about closing this and commit this there?
Comment #7
ParisLiakos CreditAttribution: ParisLiakos commentednevermind, here is a specific test
Comment #8
dawehnerI like the simplicity of the test
It could be helpful to provide a custom message.
Comment #9
ParisLiakos CreditAttribution: ParisLiakos commentedtrue, here it is
Comment #10
dawehnerWas not loaded? Additional there is a missing "." at the end.
Comment #11
ParisLiakos CreditAttribution: ParisLiakos commentedEdited it manually:
Comment #12
dawehnerWe can use '' instead of "" here.
Comment #13
ParisLiakos CreditAttribution: ParisLiakos commentedmanually edited++
Comment #14
dawehnerSorry for all the nitpicks and general lack of knowledge.
Comment #15
alexpottCommitted af11d7b and pushed to 8.x! Thanks!