function tearDown() {
    parent::tearDown();
    rules_test_done();
  }

should be

  function tearDown() {
    rules_test_done();
    parent::tearDown();
  }

also if you only have a single test file you should be able to place it in the root of the test module, named rules_test.test (optional of course).

Comments

fago’s picture

thanks, I've fixed that. I also ported the tests to the simpletest 2.x branch but now I get errors like this:

Table 'fago_drupal_6.simpletest459140cache_rules' doesn't exist query: SELECT data, created, headers, expire, serialized FROM simpletest459140cache_rules WHERE cid = 'include_rules'

Seems to be related to #348455: Provide a scalable way to ensure a clean testing environment for SimpleTest, I have to take a further look at it.

fago’s picture

Status: Active » Fixed

ok, I've fixed the tests.

To get around the above error message I had to use a small hack. See #382090: Modules are not installed correctly for that.

Status: Fixed » Closed (fixed)

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

mitchell’s picture

Component: Miscellaneous » Rules Core

Updated component.