1 simpletest_example.test public SimpleTestExampleMockModuleTestCase::setUp()

Set up the test environment.

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

Overrides BackdropWebTestCase::setUp

File

modules/examples/simpletest_example/tests/simpletest_example.test, line 187
An example of simpletest tests.

Class

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

Code

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