You are here

function BlockTestCase::setUp in SimpleTest 6.2

Implementation of setUp().

Overrides DrupalWebTestCase::setUp

File

tests/block.test, line 24
Backport of Drupal 7 block.test with modifications, see BACKPORT.txt.

Class

BlockTestCase
@file Backport of Drupal 7 block.test with modifications, see BACKPORT.txt.

Code

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

  // Create and login user
  $admin_user = $this
    ->drupalCreateUser(array(
    'administer blocks',
  ));
  $this
    ->drupalLogin($admin_user);
}