Closed (fixed)
Project:
CAPTCHA
Version:
2.x-dev
Component:
Tests
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Jan 2025 at 08:22 UTC
Updated:
6 Aug 2025 at 08:39 UTC
Jump to comment: Most recent
Drupal\Tests\captcha\Functional\CaptchaCacheTest::testCacheTags is failing due to changes in Drupal 11.1. See details here: Page Cache & Dynamic Page Cache modules' response headers improved
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
murat_kekic commentedDespite there are no failing tests, the pipeline is still failing. I can't figure out why just from the logs. Can someone take a look?
Comment #4
murat_kekic commentedComment #6
dlevchik commentedFixed tests for D11. Fixed deprecations, like
Creation of dynamic properties is deprecatedor
This last one is drupal core fault, when saving new config entity on preSave() it tries to load existing entity by uuid in core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php line 308. I didn't find the issue for this on drupal core issues. So now we just pre-fill uuid on new CaptchaPoint creation in captcha_set_form_id_setting()
To fix the tests I've added this condition:
This is not ideal, and I believe instead of doing this we may consider to make "phpunit (previous minor)" pipeline optional and allow it to fail, to better support D11. But, considering most of the users are still on D10, this can be done later in the future
Comment #7
anybodyVery nice work, thanks you!
Comment #9
anybody