function OgWiki::setUp in Organic groups 6
Same name and namespace in other branches
- 6.2 tests/og_wiki.test \OgWiki::setUp()
Implementation of setUp().
Overrides DrupalWebTestCase::setUp
File
- tests/
og_wiki.test, line 26
Class
Code
function setUp() {
parent::setUp('og', 'og_access');
// Create a user with admin permissions.
$web_admin = $this
->drupalCreateUser(array(
'administer nodes',
'administer content types',
'access administration pages',
'administer site configuration',
'administer organic groups',
));
$this->web_admin = $web_admin;
$this
->drupalLogin($web_admin);
// Create a web user.
$web_user = $this
->drupalCreateUser(array(
'access content',
));
$this->web_user = $web_user;
}