You are here

WidgetFormattedTest.php in The CodeMirror Editor 8

File

tests/src/FunctionalJavascript/WidgetFormattedTest.php
View source
<?php

namespace Drupal\Tests\codemirror_editor\FunctionalJavascript;

use Drupal\Tests\codemirror_editor\FunctionalJavascript\WidgetTestTrait;

/**
 * Tests the CodeMirror field widget (text_long).
 *
 * @group codemirror_editor
 */
final class WidgetFormattedTest extends WidgetTestBase {

  // Tests in trait are automatically executed.
  use WidgetTestTrait;

  /**
   * {@inheritdoc}
   */
  public function setUp() {
    parent::setUp();

    // The 'string_long' widget uses the 'test2' test content type.
    $this->contentTypeName = 'test2';
    $this->fieldName = 'field_code2';
  }

  /**
   * {@inheritdoc}
   */
  protected function getWrapperSelector() {
    return '.js-form-item-field-code2-0-value';
  }

}

Classes

Namesort descending Description
WidgetFormattedTest Tests the CodeMirror field widget (text_long).