function SystemMainContentFallback::setUp
Overrides DrupalWebTestCase::setUp
File
-
modules/
system/ system.test, line 1826
Class
- SystemMainContentFallback
- Test main content rendering fallback provided by system module.
Code
function setUp() {
parent::setUp('system_test');
// Create and login admin user.
$this->admin_user = $this->drupalCreateUser(array(
'access administration pages',
'administer site configuration',
'administer modules',
'administer blocks',
'administer nodes',
));
$this->drupalLogin($this->admin_user);
// Create a web user.
$this->web_user = $this->drupalCreateUser(array(
'access user profiles',
'access content',
));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.