function DrupalMatchPathTestCase::setUp
Overrides DrupalWebTestCase::setUp
File
-
modules/
simpletest/ tests/ path.test, line 24
Class
- DrupalMatchPathTestCase
- Unit tests for the drupal_match_path() function in path.inc.
Code
function setUp() {
// Set up the database and testing environment.
parent::setUp();
// Set up a random site front page to test the '<front>' placeholder.
$this->front = $this->randomName();
variable_set('site_frontpage', $this->front);
// Refresh our static variables from the database.
$this->refreshVariables();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.