Bug 23050: (QA follow-up) Add Koha::Plugins::Tab class
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 4 Nov 2019 14:52:33 +0000 (11:52 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 5 Nov 2019 08:13:59 +0000 (08:13 +0000)
commit9b2d782813589fe4cd30ce51f8f61428f7e82c3d
tree193c047515bbe7167a3530d370727eb15bb0d9f7
parente7b3f8e362b2198233a92710b82a40fb1d534168
Bug 23050: (QA follow-up) Add Koha::Plugins::Tab class

This minimal class encapsulates the tabs to be passed around to the
templates, so error checking on missing bits is done in a single place.

It throws exceptions on errors

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Plugins/Tab.pm [new file with mode: 0644]
catalogue/detail.pl
t/Koha/Plugins/Tab.t [new file with mode: 0644]
t/lib/Koha/Plugin/Test.pm