function FilterAdminTestCase::setUp

Overrides DrupalWebTestCase::setUp

File

modules/filter/filter.test, line 187

Class

FilterAdminTestCase
Tests the administrative functionality of the Filter module.

Code

function setUp() {
    parent::setUp();
    // Create users.
    $filtered_html_format = filter_format_load('filtered_html');
    $full_html_format = filter_format_load('full_html');
    $this->admin_user = $this->drupalCreateUser(array(
        'administer filters',
        filter_permission_name($filtered_html_format),
        filter_permission_name($full_html_format),
    ));
    $this->web_user = $this->drupalCreateUser(array(
        'create page content',
        'edit own page content',
    ));
    $this->drupalLogin($this->admin_user);
}

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