function SearchCommentTestCase::setUp

Overrides DrupalWebTestCase::setUp

File

modules/search/search.test, line 768

Class

SearchCommentTestCase
Test integration searching comments.

Code

function setUp() {
    parent::setUp('comment', 'search');
    // Create and log in an administrative user having access to the Full HTML
    // text format.
    $full_html_format = filter_format_load('full_html');
    $permissions = array(
        'administer filters',
        filter_permission_name($full_html_format),
        'administer permissions',
        'create page content',
        'skip comment approval',
        'access comments',
    );
    $this->admin_user = $this->drupalCreateUser($permissions);
    $this->drupalLogin($this->admin_user);
}

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