public function QueryParametersToURLMenuItemTestCase::setUp in Query Parameters To URL 7
Initial setup.
Overrides DrupalWebTestCase::setUp
File
- ./
query_parameters_to_url.test, line 580 - Query Arguments To URL tests.
Class
- QueryParametersToURLMenuItemTestCase
- Menu item save tests.
Code
public function setUp() {
parent::setUp(array(
'menu',
'query_parameters_to_url',
));
// Enable rewriting on all paths.
variable_set(QUERY_PARAMETERS_TO_URL_PATH_REG_EXP, '{.+}');
// Clean URLs should be enabled for testing.
variable_set('clean_url', 1);
// Create privileged user.
$permissions = array(
'access administration pages',
'administer blocks',
'administer menu',
'administer site configuration',
'create page content',
'edit any page content',
'delete any page content',
);
$this->admin_user = $this
->drupalCreateUser($permissions);
}