function BlogTestCase::setUp

Enable modules and create users with specific permissions.

Overrides DrupalWebTestCase::setUp

File

modules/blog/blog.test, line 24

Class

BlogTestCase
@file Tests for blog.module.

Code

function setUp() {
    parent::setUp('blog');
    // Create users.
    $this->big_user = $this->drupalCreateUser(array(
        'administer blocks',
    ));
    $this->own_user = $this->drupalCreateUser(array(
        'create blog content',
        'edit own blog content',
        'delete own blog content',
    ));
    $this->any_user = $this->drupalCreateUser(array(
        'create blog content',
        'edit any blog content',
        'delete any blog content',
        'access administration pages',
    ));
}

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