You are here

public function CodeFilterUnitTestCase::testContainerExpand in Code Filter 7

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

File

./codefilter.test, line 96
Functional and unit tests for codefilter.module.

Class

CodeFilterUnitTestCase
Contains unit tests for codefilter.module.

Code

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