function QuickEditIntegrationTest::testAttachments
Tests in-place editor attachments when the Editor module is present.
File
-
core/
modules/ editor/ tests/ src/ Kernel/ QuickEditIntegrationTest.php, line 204
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.");
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.