You are here

protected function FormatterTest::assertFormatter in The CodeMirror Editor 8

Asserts formatter's output.

1 call to FormatterTest::assertFormatter()
FormatterTest::testFormatter in tests/src/FunctionalJavascript/FormatterTest.php
Test callback.

File

tests/src/FunctionalJavascript/FormatterTest.php, line 97

Class

FormatterTest
Tests the CodeMirror field formatter.

Namespace

Drupal\Tests\codemirror_editor\FunctionalJavascript

Code

protected function assertFormatter(array $formatter_settings) {
  $this
    ->assertEditorOption('mode', $formatter_settings['mode']);
  $this
    ->assertEditorOption('lineWrapping', $formatter_settings['lineWrapping']);
  $this
    ->assertEditorOption('lineNumbers', $formatter_settings['lineNumbers']);
  $this
    ->assertEditorOption('foldGutter', $formatter_settings['foldGutter']);
}