You are here

public function M4032404TestCase::setUp in 403 to 404 7

Setup the default environment settings.

Overrides DrupalWebTestCase::setUp

File

tests/m4032404.test, line 28
Tests for m4032404.

Class

M4032404TestCase
Tests the functionality of the m4032404 module.

Code

public function setUp() {

  // Enable m4032404.
  parent::setUp(array(
    'm4032404',
  ));

  // Create and log in our privileged user.
  $this->privilegedUser = $this
    ->drupalCreateUser(array(
    'access content',
  ));
  $this
    ->drupalLogin($this->privilegedUser);

  // Set site_403 variable to test.
  variable_set('site_403', 'm4032404');
}