You are here

protected function CodeFilterPrismUnitTestCase::getFilter in Code Filter 7

Returns a codefilter filter defintion, with prism enabled.

Return value

array The filter definition as defined in codefilter_filter_info().

1 call to CodeFilterPrismUnitTestCase::getFilter()
CodeFilterPrismUnitTestCase::setUp in modules/codefilter_prism/codefilter_prism.test
Sets up unit test environment.

File

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

Class

CodeFilterPrismUnitTestCase
Contains unit tests for codefilter_prism.module.

Code

protected function getFilter() {
  include_once dirname(__FILE__) . '/codefilter_prism.module';
  include_once dirname(__FILE__) . '/../../codefilter.module';
  $filter = codefilter_filter_info();

  // Enable prism.
  $filter['codefilter']['default settings']['codefilter_prism'] = TRUE;
  return $filter;
}