From 3679b45a691b364611f6cd041fbd56542005c038 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 27 Sep 2021 11:55:06 +0000 Subject: [PATCH] Bug 29121: Add POD to plugins Signed-off-by: Kyle M Hall Signed-off-by: Martin Renvoize --- t/lib/Koha/Plugin/BrokenInstall.pm | 14 ++++++++++++++ t/lib/Koha/Plugin/BrokenUpgrade.pm | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/t/lib/Koha/Plugin/BrokenInstall.pm b/t/lib/Koha/Plugin/BrokenInstall.pm index f55df4ab20..86146ba2df 100644 --- a/t/lib/Koha/Plugin/BrokenInstall.pm +++ b/t/lib/Koha/Plugin/BrokenInstall.pm @@ -16,6 +16,14 @@ our $metadata = { version => $VERSION, }; +=head1 METHODS + +=head2 new + +instantiate the plugin + +=cut + sub new { my ( $class, $args ) = @_; $args->{'metadata'} = $metadata; @@ -23,6 +31,12 @@ sub new { return $self; } +=head2 install + +install method that dies + +=cut + sub install { die "Why Liz? WHY?"; } diff --git a/t/lib/Koha/Plugin/BrokenUpgrade.pm b/t/lib/Koha/Plugin/BrokenUpgrade.pm index 7ecde3ead8..bdf5f04018 100644 --- a/t/lib/Koha/Plugin/BrokenUpgrade.pm +++ b/t/lib/Koha/Plugin/BrokenUpgrade.pm @@ -16,6 +16,14 @@ our $metadata = { version => $VERSION, }; +=head1 METHODS + +=head2 new + +Instantiate the plugin + +=cut + sub new { my ( $class, $args ) = @_; $args->{'metadata'} = $metadata; @@ -23,6 +31,12 @@ sub new { return $self; } +=head2 upgrade + +upgrade method that dies + +=cut + sub upgrade { die "Why Liz? WHY?"; } -- 2.20.1