You are here

public function BulkPhotoNodesTestCase::setUp in Bulk File Nodes 7

Creates and logs in a user to test configuration of bulk_photo_nodes.

Overrides DrupalWebTestCase::setUp

File

tests/bulk_photo_nodes.test, line 16
Tests for the bulk_photo_nodes module.

Class

BulkPhotoNodesTestCase
Tests the functionality of the bulk_photo_nodes module.

Code

public function setUp() {
  parent::setUp('bulk_photo_nodes', 'bpn_upload');
  $this->privilegedUser = $this
    ->drupalCreateUser(array(
    'administer content types',
    'administer nodes',
    'bypass node access',
    'create bulk photo nodes',
  ));
  $this
    ->drupalLogin($this->privilegedUser);
}