You are here

public function CodeFilterPrismUnitTestCase::testContainerExpand in Code Filter 7

Checks that CSS classes are added which JS uses for hover events.

File

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

Class

CodeFilterPrismUnitTestCase
Contains unit tests for codefilter_prism.module.

Code

public function testContainerExpand() {
  $input = file_get_contents($this->path . '/php-input.txt');
  $settings = array(
    'nowrap_expand' => TRUE,
  );
  $result = $this
    ->filterText($input, $settings);
  $this
    ->assertTrue(strpos($result, '<pre class="codeblock nowrap-expand">') !== FALSE, 'Expand class is added to codefilter_prism blocks that are too long when that option is specified.');
}