function ActivityAPITest::setUp in Activity 6
Same name and namespace in other branches
- 5.4 tests/ActivityAPITests.test \ActivityAPITest::setUp()
- 5.2 tests/ActivityAPITests.test \ActivityAPITest::setUp()
- 5.3 tests/ActivityAPITests.test \ActivityAPITest::setUp()
File
- tests/
ActivityAPITests.test, line 16
Class
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'"));
}