You are here

WidgetStringTest.php in The CodeMirror Editor 8

File

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

namespace Drupal\Tests\codemirror_editor\FunctionalJavascript;

use Drupal\Tests\codemirror_editor\FunctionalJavascript\WidgetTestTrait;

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

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

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

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

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

}

Classes

Namesort descending Description
WidgetStringTest Tests the CodeMirror field widget (string_long).