Closed (fixed)
Project:
Rules
Version:
6.x-1.x-dev
Component:
Rules Core
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
20 Feb 2009 at 08:26 UTC
Updated:
26 May 2012 at 17:08 UTC
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
Comment #1
fagothanks, 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.
Comment #2
fagook, 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.
Comment #4
mitchell commentedUpdated component.