function SearchLanguageTestCase::setUp

Implementation setUp().

Overrides DrupalWebTestCase::setUp

File

modules/search/search.test, line 1993

Class

SearchLanguageTestCase
Test node search with multiple languages.

Code

function setUp() {
    parent::setUp('search', 'locale');
    // Create and login user.
    $test_user = $this->drupalCreateUser(array(
        'access content',
        'search content',
        'use advanced search',
        'administer nodes',
        'administer languages',
        'access administration pages',
    ));
    $this->drupalLogin($test_user);
}

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