You are here

function ActivityAPITest::tearDown in Activity 6

Same name and namespace in other branches
  1. 5.4 tests/ActivityAPITests.test \ActivityAPITest::tearDown()
  2. 5.2 tests/ActivityAPITests.test \ActivityAPITest::tearDown()
  3. 5.3 tests/ActivityAPITests.test \ActivityAPITest::tearDown()

File

tests/ActivityAPITests.test, line 24

Class

ActivityAPITest

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);
}