You are here

public function QuickEditIntegrationTest::testAttachments in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/editor/src/Tests/QuickEditIntegrationTest.php \Drupal\editor\Tests\QuickEditIntegrationTest::testAttachments()

Tests in-place editor attachments when the Editor module is present.

File

core/modules/editor/src/Tests/QuickEditIntegrationTest.php, line 188
Contains \Drupal\editor\Tests\QuickEditIntegrationTest.

Class

QuickEditIntegrationTest
Tests Edit module integration (Editor module's inline editing support).

Namespace

Drupal\editor\Tests

Code

public function testAttachments() {
  $this->editorSelector = $this->container
    ->get('quickedit.editor.selector');
  $editors = array(
    'editor',
  );
  $attachments = $this->editorSelector
    ->getEditorAttachments($editors);
  $this
    ->assertIdentical($attachments, array(
    'library' => array(
      'editor/quickedit.inPlaceEditor.formattedText',
    ),
  ), "Expected attachments for Editor module's in-place editor found.");
}