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.
Problem/Motivation
I have both authcache_commerce and commerce_cart enabled. Because of the change in #2816525: PHP Fatal error: Class 'CommerceCartTestCase' not found now I get the following error when trying to run tests (from the CLI):
PHP Fatal error: Cannot redeclare class CommerceCartTestCase in .../contrib/commerce/modules/cart/tests/commerce_cart.test on line 13
This is because the authcache version of the class gets registered first (see _registry_update()).
Proposed resolution
Apply the first patch in #2816525: PHP Fatal error: Class 'CommerceCartTestCase' not found instead.
Comments
Comment #2
czigor CreditAttribution: czigor commentedComment #4
znerol CreditAttribution: znerol commented