function ActivityAPITest::tearDown in Activity 6
Same name and namespace in other branches
- 5.4 tests/ActivityAPITests.test \ActivityAPITest::tearDown()
- 5.2 tests/ActivityAPITests.test \ActivityAPITest::tearDown()
- 5.3 tests/ActivityAPITests.test \ActivityAPITest::tearDown()
File
- tests/
ActivityAPITests.test, line 24
Class
Code
function tearDown() {
parent::tearDown();
db_query('DELETE FROM {activity} WHERE aid > %d', $this->beginning_aid);
db_query('DELETE FROM {activity_targets} WHERE aid > %d', $this->beginning_aid);
db_query("UPDATE {sequences} SET id = %d WHERE name = 'activity'", $this->sequences_id);
}