function IPAddressBlockingTestCase::setUp

Implement setUp().

Parameters

...: List of modules to enable for the duration of the test. This can be either a single array or a variable number of string arguments.

Overrides DrupalWebTestCase::setUp

File

modules/system/system.test, line 713

Class

IPAddressBlockingTestCase

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.