You are here

public function SharerichTest::setUp in Sharerich 7.2

Same name and namespace in other branches
  1. 7.3 tests/sharerich.test \SharerichTest::setUp()

Setup.

Overrides DrupalWebTestCase::setUp

File

tests/sharerich.test, line 55

Class

SharerichTest
Sharerich tests.

Code

public function setUp() {
  parent::setUp($this->modules);

  // Services to test.
  $this->services = array(
    'facebook',
    'email',
    'twitter',
  );

  // Create admin user.
  $this->adminUser = $this
    ->drupalCreateUser(array(
    'access administration pages',
    'administer sharerich',
    'administer blocks',
    'administer modules',
    'access contextual links',
  ));

  // Enable clean urls.
  variable_set('clean_url', TRUE);
}