Closed (fixed)
Project:
Linkit
Version:
6.0.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
24 Mar 2023 at 14:38 UTC
Updated:
7 Apr 2023 at 18:34 UTC
Jump to comment: Most recent, Most recent file
Discovered while working on #3317769: Add support for linking to entities in CKEditor 5.
See #2.
Re-enable path_alias.path_processor in our kernel test — see #3.
TBD
None.
None.
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3350223-3.patch | 2.02 KB | wim leers |
| #3 | interdiff.txt | 1.11 KB | wim leers |
| #2 | 3350223-2-FAIL.patch | 967 bytes | wim leers |
Comments
Comment #2
wim leersComment #3
wim leersEven though the test appears to claim to be testing that the filter puts the correct alias in place during filtering … that's not actually happening! 😅
This is caused by
in
\Drupal\KernelTests\KernelTestBase::register(), which has been in place sinceKernelTestBasewas introduced in #2304461: KernelTestBaseTNG™!The solution is simple: undo that, because it's an assumption that is not a problem for this particular test, since we do install
path_alias' entity schema.Comment #5
wim leersNote that this bug has only remained hidden for all these years because too much in the test was generated/computed. With more explicit expectations defined, this could never have happened.
As part of working on #3317769: Add support for linking to entities in CKEditor 5, I was hardening the test coverage, and that's how I discovered this. See that MR for a comprehensive strengthening of this module's filter kernel test.
Comment #7
wim leersThe failure is unrelated:
Comment #8
mark_fullmerI was getting a similar (but different assertion) false failure in https://www.drupal.org/project/linkit/issues/3232190#comment-14898179
Assigning myself for review!
Comment #9
wim leersI just realized that's probably due to #3344083: Update CKEditor 5 to 36.0.1 landing earlier today!
So, re-testing this against
10.0.x, then it should pass 🤓Comment #10
wim leersLooks like my hunch was correct 🥳
Comment #11
rajeshreeputraIn 10.0.7 CKEditor5 major upgrade to v36 has been now reverted .
Comment #12
mark_fullmerThis comment clarifies what's going on here, so I think it's clear to our future selves why we're doing this :) . I also ran the tests against 9.5.x just to be sure after the 9.5.6/9.5.7 hullabaloo. Everything looks good!
Comment #14
mark_fullmer