You are here

public function ChecklistapiUnitTestCase::setUp in Checklist API 7

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

tests/checklistapi.test, line 27
Tests for Checklist API module.

Class

ChecklistapiUnitTestCase
Unit tests for Checklist API.

Code

public function setUp() {
  drupal_load('module', 'checklistapi');
  drupal_load('module', 'checklistapi_test');
  parent::setUp();
}