You are here

protected function ScaldAtomEntityTestCase::setUp in Scald: Media Management made easy 7

Sets up a Drupal site for running functional and integration tests.

Overrides ScaldWebTestCase::setUp

File

tests/scald.test, line 332
Tests for scald.module.

Class

ScaldAtomEntityTestCase
Test the Scald atom entities.

Code

protected function setUp() {
  parent::setUp('scald_image');
  $this->web_user = $this
    ->drupalCreateUser(array(
    'create atom of image type',
    'view any atom',
    'fetch any atom',
    'edit own atom',
  ));
  $this
    ->drupalLogin($this->web_user);
}