You are here

function BoxSetup::addAdminUser in Boxes 7.2

1 call to BoxSetup::addAdminUser()
BoxSetup::setUp in ./boxes.test
Sets up a Drupal site for running functional and integration tests.

File

./boxes.test, line 19
Tests for block.module.

Class

BoxSetup
@file Tests for block.module.

Code

function addAdminUser() {
  $permissions = array_keys(boxes_permission());
  $permissions += array(
    'administer blocks',
    'access administration pages',
    'access content',
  );
  $this->admin_user = $this
    ->drupalCreateUser($permissions);
  $this
    ->drupalLogin($this->admin_user);

  // Test plugin name
  $this->plugin_name = 'test_box';
}