Closed (fixed)
Project:
Custom Elements
Version:
3.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2025 at 11:42 UTC
Updated:
19 Nov 2025 at 10:59 UTC
Jump to comment: Most recent
As of this week, our test started to fail in 3.x with changes on our side. The same pipeline of the same commit was green before.
Broken pipeline: https://git.drupalcode.org/project/custom_elements/-/jobs/6748785
There were 2 failures:
1) Drupal\Tests\custom_elements\Kernel\CustomElementGeneratorTest::testGenerateCoreBothWithLayout
Failed asserting that null is identical to 'This is a test'.
/builds/project/custom_elements/tests/src/Kernel/CustomElementGeneratorTest.php:698
/builds/project/custom_elements/tests/src/Kernel/CustomElementGeneratorTest.php:515
/builds/project/custom_elements/tests/src/Kernel/CustomElementGeneratorTest.php:266
2) Drupal\Tests\custom_elements\Kernel\CustomElementGeneratorTest::testGenerateCoreDefaultWithLayout
Failed asserting that null is identical to 'This is a test'.
/builds/project/custom_elements/tests/src/Kernel/CustomElementGeneratorTest.php:698
/builds/project/custom_elements/tests/src/Kernel/CustomElementGeneratorTest.php:515
/builds/project/custom_elements/tests/src/Kernel/CustomElementGeneratorTest.php:312
FAILURES!
Tests: 67, Assertions: 1585, Failures: 2, PHPUnit Deprecations: 84.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 #2
fagoFound the issue:
Changed Behavior in Drupal 11.x-dev:
This change in behavior is actually acceptable and just a slight change in UX - as long as people have saved their custom-element entity displays. I'd expect that to be the case anyway, but we can document this change in a change-notice to play save. Generally, it could be argued that having an empty list of fields is a good default IF layout builder is used.
TL/DR: I think the status quo with behavior being changed with the core upgrade is fine and we just need to make tests check for that. In th end it's a minor-version update of core and some small changes like this are expected there. There is no change when config is exported properly anyway.
-> Let's use something like https://www.drupal.org/node/3379306
Comment #3
fagoComment #5
fagoComment #6
fagoall green again
Comment #7
useernamee commentedLooks good. #passed-tr
Comment #8
useernamee commentedComment #10
useernamee commentedmerged