You are here

public function SimpleTestExampleMockModuleTestCase::setUp in Examples for Developers 7

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
An example of simpletest tests to accompany the tutorial at http://drupal.org/node/890654.

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