function SimpleTestExampleMockModuleTestCase::setUp

Set up the test environment.

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

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');
}