function SimpleTestExampleMockModuleTestCase::setUp

Set up the test environment.

Note that we're enabling both the simpletest_example and simpletest_example_test modules.

Parameters

...: List of modules to enable for the duration of the test. This can be either a single array or a variable number of string arguments.

Overrides DrupalWebTestCase::setUp

File

simpletest_example/simpletest_example.test, line 235

Class

SimpleTestExampleMockModuleTestCase
SimpleTestExampleMockModuleTestCase allows us to demonstrate how you can use a mock module to aid in functional testing in Drupal.

Code

public function setUp() {
  // We call parent::setUp() with the list of modules we want to enable.
  parent::setUp('simpletest_example', 'simpletest_example_test');
}