You are here

public function CkeditorCodeMirrorBasicTest::testCheckStatusReportPage in CKEditor CodeMirror 7

Check the library status on "Status report" page.

File

./ckeditor_codemirror.test, line 43
Tests for CKEditor CodeMirror module.

Class

CkeditorCodeMirrorBasicTest
@file Tests for CKEditor CodeMirror module.

Code

public function testCheckStatusReportPage() {
  $this
    ->drupalGet('admin/reports/status');
  if (($library = libraries_detect('ckeditor.codemirror')) && !empty($library['library path'])) {
    $this
      ->assertRaw(t('CKEditor CodeMirror plugin %version installed at %path.', array(
      '%path' => $library['library path'],
      '%version' => $library['version'],
    )));
  }
  else {
    $this
      ->assertText(t('CKEditor CodeMirror plugin was not found.'));
  }
}