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.
In my attempt to understand what this module does I tried to run the tests. I installed a fresh Commerce Kickstart, enabled all required modules by hand, then enabled Commerce Subscription. Running the tests dies on the very first one apparently because entity_get_controller() doesn't have access to the subscription entity but I'm not sure why.
class CommerceSubscriptionEntityTestCase extends CommerceSubscriptionTestCase {
public static function getInfo() {
return array(
'name' => 'Subscription entity integration',
'description' => 'Tests the subscription entity integration.',
'group' => 'Commerce Subscription',
);
}
function testEntityMetadataWrappers() {
// The following line dies
$membership = commerce_subscription_new('membership');
Comments
Comment #1
keithm CreditAttribution: keithm commentedLooks like it is a problem with the Commerce Kickstart installation profile; see #1282554: Contrib module tests broken in Commerce Kickstart. Working around that issue enabled me to run Commerce Subscription tests.