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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

czigor created an issue. See original summary.

  • znerol committed 388d4a4 on 7.x-2.x authored by czigor
    Issue #2829669 by czigor: Cannot redeclare class CommerceCartTestCase
    
znerol’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.