Koha-clms/t/lib/plugins/Koha/Plugin
Olivia Reynolds ff2b951c4d
Bug 41648: Validate plugin date metadata
If a plugin reports a date_authored or date_updated we can't parse,
remove the invalid property from the metadata hashref and emit a
warning.

To test this, introduce a separate test plugin directory and test file.
Having a plugin that produces warnings in the main test directory would
require accounting for this warning in every existing test that loads
plugins. Correspondingly, this patch also fixes an invalid date in an
existing test plugin.

Test plan:
1. Apply patch.
2. Run `prove -r t/db_dependent/Koha/Plugins/` and verify there are no
   test failures.

Sponsored-by: Open Fifth
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
2026-08-21 14:31:48 +00:00
..
ILL Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Test Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
TestValuebuilder Bug 41216: Fix failing test 2026-04-10 09:48:09 -06:00
1_CalcFineEmpty.pm Bug 39405: Add more plugin examples to build tests 2025-04-25 08:46:48 +02:00
2_CalcFineNotEmpty.pm Bug 39405: Add more plugin examples to build tests 2025-04-25 08:46:48 +02:00
3_CalcFineBadValue.pm Bug 39405: Add more plugin examples to build tests 2025-04-25 08:46:48 +02:00
BackendClass.pm Bug 39092: Unit tests 2025-04-25 18:34:50 +02:00
BadAPIRoute.pm Bug 41648: Validate plugin date metadata 2026-08-21 14:31:48 +00:00
MarcFieldValues.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Test.pm Bug 33758: Add a parameter to use the intranet_catalog_biblio_enhancements_toolbar_button Plugin hook 2026-08-14 12:09:19 +00:00
TestItemBarcodeTransform.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
TestValuebuilder.pm Bug 39522: Add unit tests for valuebuilder plugin hooks 2026-01-12 10:53:32 -07:00