You are here

function CasAttributesTestHelper::setUp in CAS Attributes 7

Same name and namespace in other branches
  1. 6.3 cas_attributes.test \CasAttributesTestHelper::setUp()

Helper class for CAS tests.

Creates an administrative user and downloads phpCAS.

Overrides CasTestHelper::setUp

1 call to CasAttributesTestHelper::setUp()
CasAttributesTestCase::setUp in ./cas_attributes.test
Helper class for CAS tests.
1 method overrides CasAttributesTestHelper::setUp()
CasAttributesTestCase::setUp in ./cas_attributes.test
Helper class for CAS tests.

File

./cas_attributes.test, line 12
Tests for CAS Attributes.

Class

CasAttributesTestHelper
Helper class to automatically include the CAS Attributes module.

Code

function setUp() {

  // Install modules needed for this test. This could have been passed in as
  // either a single array argument or a variable number of string arguments.
  // @todo Remove this compatibility layer in Drupal 8, and only accept
  // $modules as a single array argument.
  $modules = func_get_args();
  if (isset($modules[0]) && is_array($modules[0])) {
    $modules = $modules[0];
  }
  $modules = array_merge(array(
    'cas_attributes',
  ), $modules);
  parent::setUp($modules);
}