You are here

function BlogTestCase::setUp in Drupal 7

Enable modules and create users with specific permissions.

Overrides DrupalWebTestCase::setUp

File

modules/blog/blog.test, line 24
Tests for blog.module.

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',
  ));
}