protected function CodeFilterUnitTestCase::setUp in Code Filter 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
- ./
codefilter.test, line 30 - Functional and unit tests for codefilter.module.
Class
- CodeFilterUnitTestCase
- Contains unit tests for codefilter.module.
Code
protected function setUp() {
parent::setUp();
include_once dirname(__FILE__) . '/codefilter.module';
$this->filter = codefilter_filter_info();
$this->path = drupal_get_path('module', 'codefilter') . '/tests';
}