1 date_api.test DateAPITestCase::setUp()

Sets up unit test environment.

Unlike BackdropWebTestCase::setUp(), BackdropUnitTestCase::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 BackdropUnitTestCase::setUp

File

core/modules/date/tests/date_api.test, line 8
Test Date API functions

Class

DateAPITestCase

Code

function setUp() {
  parent::setUp();
  require_once (BACKDROP_ROOT . '/core/includes/date.inc');
  require_once (BACKDROP_ROOT . '/core/includes/date.class.inc');
}