Loading tests/src/Kernel/EditorIntegrationTest.php +6 −1 Original line number Diff line number Diff line Loading @@ -207,7 +207,12 @@ class EditorIntegrationTest extends QuickEditTestBase { $editors = ['editor']; $attachments = $this->editorSelector->getEditorAttachments($editors); $this->assertSame(['library' => ['quickedit/quickedit.inPlaceEditor.formattedText']], $attachments, "Expected attachments for Editor module's in-place editor found."); // Since #3291047 is not backported to 9.4.x in core, the expected module // providing this library is different for each core branch. If we're on // 9.5.* and up, it should be coming from 'quickedit', but prior to that // it's from 'editor'. $provider = version_compare(\Drupal::VERSION, '9.4.999999', '>') ? 'quickedit' : 'editor'; $this->assertSame(['library' => [$provider . '/quickedit.inPlaceEditor.formattedText']], $attachments, "Expected attachments for Editor module's in-place editor found."); } /** Loading Loading
tests/src/Kernel/EditorIntegrationTest.php +6 −1 Original line number Diff line number Diff line Loading @@ -207,7 +207,12 @@ class EditorIntegrationTest extends QuickEditTestBase { $editors = ['editor']; $attachments = $this->editorSelector->getEditorAttachments($editors); $this->assertSame(['library' => ['quickedit/quickedit.inPlaceEditor.formattedText']], $attachments, "Expected attachments for Editor module's in-place editor found."); // Since #3291047 is not backported to 9.4.x in core, the expected module // providing this library is different for each core branch. If we're on // 9.5.* and up, it should be coming from 'quickedit', but prior to that // it's from 'editor'. $provider = version_compare(\Drupal::VERSION, '9.4.999999', '>') ? 'quickedit' : 'editor'; $this->assertSame(['library' => [$provider . '/quickedit.inPlaceEditor.formattedText']], $attachments, "Expected attachments for Editor module's in-place editor found."); } /** Loading