Closed (fixed)
Project:
Token
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
13 Aug 2025 at 17:27 UTC
Updated:
19 Sep 2025 at 20:59 UTC
Jump to comment: Most recent
The tests on the 8.x-1.x branch are currently failing due to minor changes in core 11.2.x:
Token Menu Ui Content Moderation (Drupal\Tests\token\Functional\TokenMenuUiContentModeration)
✘ Menu ui with pending revisions
┐
├ Behat\Mink\Exception\ResponseTextException: The text "Page obskpila has been updated." was not found anywhere in the text of the current page.
│
│ /builds/issue/token-3541207/vendor/behat/mink/src/WebAssert.php:907
│ /builds/issue/token-3541207/vendor/behat/mink/src/WebAssert.php:293
│ /builds/issue/token-3541207/web/core/tests/Drupal/Tests/WebAssert.php:981
│ /builds/issue/token-3541207/web/core/modules/menu_ui/tests/src/Functional/MenuUiContentModerationTest.php:142
┴
⚠ Menu ui with unpublished content
The error in the output is:
Drupal\Core\Entity\EntityStorageException: An existing default revision of the 'menu_link_content' entity type can not be changed to a non-default revision. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 815 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
And..
Token Field Ui (Drupal\Tests\token\Functional\TokenFieldUi)
⚠ File field ui
⚠ Field description tokens
✘ Image field tokens
┐
├ Token value for [node:field_image:thumbnail:mimetype] was 'image/avif', expected value 'image/webp'.
├ Failed asserting that two strings are equal.
┊ ---·Expected
┊ +++·Actual
┊ @@ @@
┊ -'image/webp'
┊ +'image/avif'
│
│ /builds/issue/token-3539596/tests/src/Functional/TokenTestTrait.php:37
│ /builds/issue/token-3539596/tests/src/Functional/TokenFieldUiTest.php:264
┴
Fix the tests.
Fix the tests.
n/a
n/a
n/a
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
damienmckennaMR created.
Comment #4
damienmckennaComment #5
damienmckennaThe MR fixes the issue with the thumbnail generation, but there are still errors in TokenMenuUiContentModerationTest.
Comment #6
damienmckennaThe error in the output for TokenMenuUiContentModerationTest is:
Comment #7
damienmckennaThe error stems from this core change: #3499181: Disallow saving the current default revision as a non-default revision
Comment #8
berdirThere's an existing issue for that
Comment #9
damienmckennaAh yes, thank you - #3511768: Avoid incorrect and unecessary menu_link_content entity saving.
So is the thumbnail fix all that this issue needs to be responsible for?
Comment #10
berdirYeah.
Comment #12
berdirMerged.