function SearchBlockTestCase::setUp

Overrides DrupalWebTestCase::setUp

File

modules/search/search.test, line 604

Class

SearchBlockTestCase
Tests the rendering of the search block.

Code

function setUp() {
    parent::setUp('search');
    // Create and login user
    $admin_user = $this->drupalCreateUser(array(
        'administer blocks',
        'search content',
    ));
    $this->drupalLogin($admin_user);
}

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