Koha/t/lib
Tomas Cohen Arazi d766b6926b
Bug 22709: Unit tests
This patch introduces tests for new plugin hooks added to
C4::Biblio::{Add|Mod|Del}Biblio and C4::Items::{Add|Mod|Del}Item.

They are tested together as for creating an item you need to first create
a biblio and tests looks basically the same.

The testing strategy is
- Make sure the plugin is passed the right params
- Throw an exception at plugin-level, to be trapped by the C4::Biblio
and C4::Items lib, and converted into a warning. So we test for the
warning.
- Also, the fact that C4::Biblio and C4::Items warns, means the
exception was cought, and then Koha won't break on faulty plugins or
fatal errors from plugins.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-07-04 13:49:21 +01:00
..
Koha/Plugin Bug 22709: Unit tests 2019-07-04 13:49:21 +01:00
QA Bug 22466: Do not ask for TT methods to be filtered 2019-03-07 18:17:32 +00:00
Dates.pm Bug 19176: (QA follow-up) few cosmetic changes 2017-11-03 13:50:27 -03:00
Mocks.pm Bug 21817: Centralize the mock of userenv from tests 2019-01-02 20:18:29 +00:00
Selenium.pm Bug 22478: Fix POD 2019-05-02 13:40:26 +00:00
TestBuilder.pm Bug 22930: Make TestBuilder->build_object explodes if parameters are wrong 2019-05-17 13:26:34 +00:00