You are here

protected function CodeFilterPrismUnitTestCase::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

modules/codefilter_prism/codefilter_prism.test, line 32
Unit tests for codefilter_prism.module.

Class

CodeFilterPrismUnitTestCase
Contains unit tests for codefilter_prism.module.

Code

protected function setUp() {
  parent::setUp();
  $this->path = drupal_get_path('module', 'codefilter_prism') . '/tests';
  $this->filter = $this
    ->getFilter();
}