- Issue created by @elber
- Open on Drupal.org βCore: 10.1.x + Environment: PHP 8.1 & MySQL 5.7last update
almost 2 years ago Not currently mergeable. - last update
almost 2 years ago 2 fail - last update
almost 2 years ago 2 fail - last update
almost 2 years ago 2 fail - last update
almost 2 years ago 2 fail - Issue was unassigned.
- π§π·Brazil elber Brazil
Hi I don't know why test is failing I fixed it in my local environment
PHPUnit 9.5.26 by Sebastian Bergmann and contributors. Testing /app/modules/contrib/block_form_alter . 1 / 1 (100%) Time: 00:08.178, Memory: 10.00 MB OK (1 test, 17 assertions)
I will keep it open and wait the maintainer answer about it .
- Status changed to Needs work
almost 2 years ago 12:00pm 25 April 2023 - πΊπΈUnited States Chris Burge
With 'field_ui' added as a module dependency for the test, I'm now seeing the following test failure:
$ ../vendor/phpunit/phpunit/phpunit -c core modules/contrib/block_form_alter/ --verbose PHPUnit 9.6.15 by Sebastian Bergmann and contributors. Runtime: PHP 8.1.11 Configuration: /var/www/html/web/core/phpunit.xml.dist Testing /var/www/html/web/modules/contrib/block_form_alter E 1 / 1 (100%) Time: 00:12.400, Memory: 4.00 MB There was 1 error: 1) Drupal\Tests\block_form_alter\Functional\BlockFormAlterTest::testBlockFormAlter Behat\Mink\Exception\ElementNotFoundException: Form field with id|name|label|value "body[0][value]" not found. /var/www/html/vendor/behat/mink/src/WebAssert.php:662 /var/www/html/vendor/behat/mink/src/WebAssert.php:695 /var/www/html/web/modules/contrib/block_form_alter/tests/src/Functional/BlockFormAlterTest.php:98 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:728 ERRORS! Tests: 1, Assertions: 9, Errors: 1.
- πΊπΈUnited States Chris Burge
We needed to add the 'administer block content' permission. Also, the route for editing routes changed in D10.1, so to avoid a deprecation notice, that path was updated, too.
-
Chris Burge β
committed 60d26d26 on 2.x authored by
elber β
Issue #3356263 by elber, Chris Burge: Fix tests for D10
-
Chris Burge β
committed 60d26d26 on 2.x authored by
elber β
- Status changed to Fixed
about 1 year ago 1:00am 3 February 2024 - πΊπΈUnited States Chris Burge
@elber Thanks for opening this issue!
Automatically closed - issue fixed for 2 weeks with no activity.