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.
I'm always getting this error:
PHP Fatal error: Class 'CommerceCartTestCase' not found in .../sites/all/modules/authcache/modules/authcache_commerce/authcache_commerce.test on line 15
when trying to run tests, even if authcache_commerce module is disabled. It's annoying, because I can't run any tests. The only solution is to download commerce module, but I do not need it.
I think we should add simple check to appropriate .test file to prevent this problem.
Patch is attached.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2816525-commerce-test-dependency-2.diff | 1.29 KB | znerol |
authcache-class_commercecarttestcase_not_found.patch | 502 bytes | alan-ps | |
Comments
Comment #2
znerol CreditAttribution: znerol commentedI see. However, I'd prefer a method where we end up with a test failure when commerce is missing. What do you think?
Comment #3
alan-ps CreditAttribution: alan-ps commentedAgreed!
Comment #5
znerol CreditAttribution: znerol commentedThanks taking the time to report and fix this issue.