public function QuickEditIntegrationTest::testAttachments in Drupal 8
Tests in-place editor attachments when the Editor module is present.
File
- core/
modules/ editor/ tests/ src/ Kernel/ QuickEditIntegrationTest.php, line 199
Class
- QuickEditIntegrationTest
- Tests Edit module integration (Editor module's inline editing support).
Namespace
Drupal\Tests\editor\KernelCode
public function testAttachments() {
$this->editorSelector = $this->container
->get('quickedit.editor.selector');
$editors = [
'editor',
];
$attachments = $this->editorSelector
->getEditorAttachments($editors);
$this
->assertIdentical($attachments, [
'library' => [
'editor/quickedit.inPlaceEditor.formattedText',
],
], "Expected attachments for Editor module's in-place editor found.");
}