public function ExtlinkBaseWebTestCase::setUp in External Links 7
Set up tests.
Overrides DrupalWebTestCase::setUp
File
- tests/
extlink.test, line 36 - External Link tests.
Class
- ExtlinkBaseWebTestCase
- Base class for External Link tests.
Code
public function setUp() {
// Enable any module that you will need in your tests.
parent::setUp('extlink');
// Create a normal user without permission.
$permissions = array(
'access comments',
'post comments',
'skip comment approval',
'access content',
'create page content',
'edit own page content',
);
$this->normalUser = $this
->drupalCreateUser($permissions);
// Create an admin user.
$permissions[] = 'administer external link';
$this->adminUser = $this
->drupalCreateUser($permissions);
}