Fix tests for D10

Created on 25 April 2023, almost 2 years ago
Updated 17 February 2024, about 1 year ago

Problem/Motivation

Test is failing now

Testing /app/modules/contrib/block_form_alter
F                                                                   1 / 1 (100%)

Time: 00:04.569, Memory: 10.00 MB

There was 1 failure:

1) Drupal\Tests\block_form_alter\Functional\BlockFormAlterTest::testBlockFormAlter
Invalid permission <em class="placeholder">administer node display</em>.

/app/core/modules/user/tests/src/Traits/UserCreationTrait.php:306
/app/core/modules/user/tests/src/Traits/UserCreationTrait.php:261
/app/core/modules/user/tests/src/Traits/UserCreationTrait.php:164
/app/modules/contrib/block_form_alter/tests/src/Functional/BlockFormAlterTest.php:72
/app/vendor/phpunit/phpunit/src/Framework/TestResult.php:728

FAILURES!
Tests: 1, Assertions: 4, Failures: 1.

I'm using Drupal 10.1 version and block form alter branch 2.x

I saw this error when I was trying to fix that issue https://www.drupal.org/project/block_form_alter/issues/3351438 πŸ“Œ Implement hook_help() RTBC

Steps to reproduce

ran test inside the module.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡§πŸ‡·Brazil elber Brazil

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024