You are here

public function BirthdaysBirthdayTestCase::setUp in Birthdays 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

./birthdays.test, line 21
Unit tests for the Birthdays module.

Class

BirthdaysBirthdayTestCase
Unit tests for the BirthdaysBirthday class.

Code

public function setUp() {
  parent::setUp();
  module_load_include('inc', 'birthdays', 'birthdays_birthday');
}