You are here

public function CleanMarkupApiTestCase::setUp in Clean Markup 7.2

Sets up unit test environment.

Unlike DrupalWebTestCase::setUp(), DrupalUnitTestCase::setUp() does not install modules because tests are performed without accessing the database. Any required files must be explicitly included by the child class setUp() method.

Overrides DrupalUnitTestCase::setUp

File

./clean_markup.test, line 27
Tests for the Clean Markup module.

Class

CleanMarkupApiTestCase
Tests the common Clean Markup functionality.

Code

public function setUp() {
  parent::setUp();

  // Include the module file so we have access to the functions we want to
  // test.
  drupal_load('module', 'clean_markup');
}