function SearchNodeAccessTest::setUp

Overrides DrupalWebTestCase::setUp

File

modules/search/search.test, line 2057

Class

SearchNodeAccessTest
Tests node search with node access control.

Code

function setUp() {
    parent::setUp('search', 'node_access_test');
    node_access_rebuild();
    // Create a test user and log in.
    $this->test_user = $this->drupalCreateUser(array(
        'access content',
        'search content',
        'use advanced search',
    ));
    $this->drupalLogin($this->test_user);
}

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