From edfa6b9ffe808075c00761a204c4dbd9d6ca77b8 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 Signed-off-by: Jonathan Druart --- 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?"; }