Commit 20cd5baa authored by Derek Wright's avatar Derek Wright
Browse files

Issue #3291700 by dww: hack EditorIntegrationTest to know that #3291047 is not backported to 9.4.x.

parent 8bced4b7
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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.");
  }

  /**