Closed (fixed)
Project:
Gift Aid management
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 Jul 2025 at 16:58 UTC
Updated:
30 Jul 2025 at 13:59 UTC
Jump to comment: Most recent
See title
1) Fix warnings
2) Fix some @todo
3) Remove some redundant code:
modules/gift_aid_commerce/src/EventSubscriber/GiftAidRelatedContextsSubscriber.phpsrc/Declaration/DeclarationStorage.php for related contextsStart 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
adamps commentedNow have a triple green on the test results😃. OK with you?
I have never installed the necessary for infrastructure for FunctionalJavascript tests. Probably we need just one test, so it's not really efficient for me to learn it. Would you be willing to do it yourself please?
In
DeclarationFormTest::testOralDeclarationRecordedByStaff(), the return statement should be down to just before@todo Fix when added code for cancellation.. It just needs some ajax to add evidence, which might start something like$this->assertSession()->waitForElementVisible('named', ['button', 'Add new Gift Aid evidence'])->press();Comment #4
adamps commentedComment #5
jonathanshawMaybe best to make this a seperate issue? I can do it.
Comment #6
adamps commentedI ended up deleting the last two items:
4) Fix deprecation notices in test results (although some come from Commerce tests?)
CheckoutTest has deprecations, but AFAICS they come from Commerce.
5) Move the menus one level down, e.g. put Gift Aid under Services? This is the normal level, and it means that the various admin pages for the module are all visible as tabs.
Things have changed since I wrote that originally. Each of the admin pages now has its own tabs, so it no longer applies.
Comment #7
adamps commentedThanks I raised #3536346: Fix FunctionalJavascript test.
Comment #9
adamps commented