You are here

function TypogrifySmartyPantsTestCase::setUp in Typogrify 7

Same name and namespace in other branches
  1. 6 tests/typogrify-smartypants.test \TypogrifySmartyPantsTestCase::setUp()

Implement setUp().

Overrides DrupalWebTestCase::setUp

File

tests/typogrify-smartypants.test, line 24
Unit tests for the basic typogrify functionality.

Class

TypogrifySmartyPantsTestCase
@file Unit tests for the basic typogrify functionality.

Code

function setUp() {
  parent::setUp('typogrify');
  module_load_include('class.php', 'typogrify');
  module_load_include('php', 'typogrify', 'unicode-conversion');
  module_load_include('php', 'typogrify', 'smartypants');
  global $filter;
  $filter = (object) array(
    'settings' => array(
      'smartypants_enabled' => 1,
      'smartypants_hyphens' => 2,
      'wrap_ampersand' => 1,
      'widont_enabled' => 1,
      'wrap_abbr' => 0,
      'wrap_caps' => 1,
      'wrap_initial_quotes' => 1,
      'hyphenate_shy' => 0,
      'wrap_numbers' => 0,
      'ligatures' => array(),
      'arrows' => array(),
      'quotes' => array(),
    ),
  );
}