function DBLogTestCase::setUp in Drupal 7
Enable modules and create users with specific permissions.
Overrides DrupalWebTestCase::setUp
File
- modules/
dblog/ dblog.test, line 38 - Tests for dblog.module.
Class
- DBLogTestCase
- Tests logging messages to the database.
Code
function setUp() {
parent::setUp('dblog', 'blog', 'poll');
// Create users.
$this->big_user = $this
->drupalCreateUser(array(
'administer site configuration',
'access administration pages',
'access site reports',
'administer users',
));
$this->any_user = $this
->drupalCreateUser(array());
}