Problem/Motivation
Tests started failing on 9.5.x and 10.0.x like this:
1) Drupal\Tests\layout_bg\FunctionalJavascript\LayoutBgUiTest::testLayoutBuilderUi
Invalid permission administer node display.
/var/www/html/core/modules/user/tests/src/Traits/UserCreationTrait.php:306
/var/www/html/core/modules/user/tests/src/Traits/UserCreationTrait.php:261
/var/www/html/core/modules/user/tests/src/Traits/UserCreationTrait.php:164
/var/www/html/modules/contrib/layout_bg/tests/src/FunctionalJavascript/LayoutBgUiTest.php:42
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:726
Some sleuthing led me to this issue that was just committed: #2935999: Remove Layout Builder's hard dependency on Field UI
Proposed resolution
Either remove the permissions from the test (if they are not needed) or explicitly enable field_ui if there's something important being tested related to field_ui or those permissions.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | layout_bg-field_ui-3304857-3.patch | 392 bytes | danflanagan8 |
Comments
Comment #2
danflanagan8Comment #3
danflanagan8I don't want to deal with enabling overrides, so let's just enable field_ui.
Comment #5
danflanagan8