I'm leveraging commerce_product and commerce_price and just saw that rules.module wants to be on board with no invitation!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jonhattan’s picture

Title: commerce_product doesn't need to depend on rules.module » Product and price submodules doesn't need to depend on rules.module
Component: Product » Other
FileSize
1.27 KB

I don't think price needs to depend on rules neither.

JulienD’s picture

Hi,

That certainly because Rules is needed by the commented code at the bottom of the commerce_product.test file. Rszrama decided to comment this big chunk of code in order to rewrite it and maybe we should do the same with the Rules dependency.

For the price module I think this dependency is useful.

rszrama’s picture

Status: Needs review » Fixed

The original patch satisfies the needs of the tests by making the test helper module depend on Rules, so no worries there. Re: JulienD's concerns, the primary use cases involving the Price module will involve Rules, but technically speaking there's no reason to force the dependency since we never directly invoke the API. We just passively expose Rules integration points in the event that Rules is present on a site.

Committed.

Status: Fixed » Closed (fixed)

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