You are here

public function MathjaxConfigTestCase::testConfig in MathJax: LaTeX for Drupal 7

Test the configuration data.

File

tests/mathjax_config.test, line 34
Configuration test file for MathJax module.

Class

MathjaxConfigTestCase
Configuration test case for the module.

Code

public function testConfig() {
  $path = '<front>';

  // Initial text on form load.
  $this
    ->drupalGet($path);
  $this
    ->assertRaw(mathjax_default_cdn_url(), 'Default CDN URL found.');
  $this
    ->assertRaw('<script type="text/x-mathjax-config">' . mathjax_default_config_string() . '</script>', 'Default configuration string found.');
}