You are here

public function PatternsExportTestCase::setUp in Patterns 7

Same name and namespace in other branches
  1. 7.2 tests/exporting/exporting.test \PatternsExportTestCase::setUp()

Setups the testing environment.

Loads the patterns and libraries modules plus all those that are passed as parameters; skips the Patterns splash screen.

Parameters

array $user_modules The array of modules to enable:

bool $first (optional) If TRUE, the Patterns splash: screen is not skipped.

Overrides PatternsTestCase::setUp

File

tests/exporting/exporting.test, line 21
Tests importing files.

Class

PatternsExportTestCase
@file Tests importing files.

Code

public function setUp($modules = array(), $first = FALSE) {
  $this->exporting_tests_dir = $this
    ->getPatternsTestDir() . 'exporting/';

  // Enable any modules required for the tests.
  $modules = array(
    'patterns_components',
    'patterns_yamlparser',
    'patterns_export',
    'macro',
  );
  parent::setUp($modules);
}