Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Please refer the problem/motivation section of #2737719: EntityResource: Provide comprehensive test coverage: for every entity type, every format, every method
Proposed resolution
Write EntityResourceTestBase subclass for the Editor entity.
Remaining tasks
References
1. Follow-up of #2737719: EntityResource: Provide comprehensive test coverage: for every entity type, every format, every method
2. Subtask of #2824572: Write EntityResourceTestBase subclasses for every other entity type.
Comment | File | Size | Author |
---|---|---|---|
#5 | interdiff-2843782-3-5.txt | 871 bytes | shadcn |
#5 | entityresource_provide-2843782-5.patch | 9.93 KB | shadcn |
#5 | interdiff-2843782-3-5-fail.txt | 930 bytes | shadcn |
#5 | entityresource_provide-2843782-5-fail.patch | 9.93 KB | shadcn |
#3 | entityresource_provide-2843782-3.patch | 9.92 KB | shadcn |
Comments
Comment #3
shadcn CreditAttribution: shadcn at Chapter Three commentedOK let's test this one.
Comment #4
Wim LeersNit:
Let's use
setEditor()
andsetImageUploadSettings()
.Comment #5
shadcn CreditAttribution: shadcn at Chapter Three commentedIt seems like there a bug where you can't create an Editor entity without passing the editor on the
Editor::create();
. See the fail patch.Comment #6
shadcn CreditAttribution: shadcn at Chapter Three commentedRelated: #2155895: \Drupal\editor\Entity\Editor should use a LazyPluginCollection.
Comment #8
Wim LeersAha! Yeah, fixing that is certainly out of scope.
That means this is ready!
Just one gotcha I want to call out for the core committer that looks at this:
This makes sense, these are the default settings, as specified by
\Drupal\ckeditor\Plugin\Editor\CKEditor::getDefaultSettings()
.Comment #10
Anonymous (not verified) CreditAttribution: Anonymous commentedDrupalCI infra fail.
Comment #12
catchCommitted af81a98 and pushed to 8.4.x. Thanks!
Test coverage only so moving 8.3.x for cherry-pick after the commit freeze.
Comment #14
alexpottComment #15
Wim LeersThanks!