I'm creating test cases for Drupal Commerce and I'm getting this error when finishing the checkout process in the test (it executes some rules for changing the order status & send a mail)

PHP Fatal error: Class 'FacesExtendable' not found in .../sites/all/modules/rules/rules/includes/rules.core.inc on line 102

I suppose it is related to #987268: Please add faces to the module dependency list, however, I'm using last -dev version of rules.

I've solved it by adding this line in the rules.info file, but not sure if it is the best solution to include faces.inc there.

files[] = includes/faces.inc

Comments

fago’s picture

Component: Rules Core » Rules Engine

Hm, the Rules module defines a class auto-load which should take care of it once the Rules module is enabled. Strangely, I never ran into a problem with it?

>files[] = includes/faces.inc
We can't do so as this would break as soon the faces module is installed too, which does exactly that.

pcambra’s picture

Status: Active » Closed (works as designed)

This is only happening in a test process, couldn't reproduce in other enviroments. I think is caused by the test process itself, I'm marking as closed by now, let's see if I can get a consistent way of reproduce this.