You are here

public function testAfFormsTestCase::setUp in Advanced Forum 7.2

Implement setUp() method.

Overrides DrupalWebTestCase::setUp

File

tests/af.test, line 51
Unit tests for advanced_forum.module.

Class

testAfFormsTestCase
Class testAfFormsTestCase

Code

public function setUp() {

  // Enable any modules required for the test.
  parent::setUp('advanced_forum');

  // Create and log in our user. The user has the arbitrary privilege
  // 'extra special edit any simpletest_example' which the code uses
  // to grant access.
  $this->privileged_user = $this
    ->drupalCreateUser(array(
    'administer site configuration',
  ));
  $this
    ->drupalLogin($this->privileged_user);
}