You are here

function IPAddressBlockingTestCase::setUp in Drupal 7

Implement setUp().

Overrides DrupalWebTestCase::setUp

File

modules/system/system.test, line 713
Tests for system.module.

Class

IPAddressBlockingTestCase

Code

function setUp() {
  parent::setUp();

  // Create user.
  $this->blocking_user = $this
    ->drupalCreateUser(array(
    'block IP addresses',
  ));
  $this
    ->drupalLogin($this->blocking_user);
}