public function MathjaxWebTestCase::testDefaults in MathJax: LaTeX for Drupal 7.2
Test the default configuration.
File
- ./
mathjax.test, line 42 - Web test file for MathJax module.
Class
- MathjaxWebTestCase
- Web test case for the module.
Code
public function testDefaults() {
$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.');
}