Koha-clms/t/lib
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
..
IdP Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Koha/BackgroundJob Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Mocks Bug 40947: Remove warning "Aborted connection" from t/db_dependent/www/search_utf8.t 2026-02-06 15:17:12 -07:00
QA Bug 41076: Adjust our perl tidiness for v20250105 2026-02-05 09:03:51 -07:00
bad_plugins/Koha/Plugin Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
plugins/Koha/Plugin Bug 41648: Validate plugin date metadata 2026-08-21 14:31:48 +00:00
plugins_bad/Koha/Plugin Bug 41648: Validate plugin date metadata 2026-08-21 14:31:48 +00:00
Bootstrap.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Dates.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Mocks.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Selenium.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
TestBuilder.pm Bug 36506: Adjust existing tests and test builder 2026-02-27 11:38:47 -07:00