You are here

function ActivityAPITest::setUp in Activity 6

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

File

tests/ActivityAPITests.test, line 16

Class

ActivityAPITest

Code

function setUp() {
  parent::setUp();

  //count current activities.
  $this->beginning_aid = db_result(db_query("SELECT MAX(aid) FROM {activity}"));

  //get the last id from sequences.
  $this->sequences_id = db_result(db_query("SELECT id FROM {sequences} WHERE name = 'activity'"));
}