From 051addf7af8794ee9d90983e3d09c60edd0eb22c Mon Sep 17 00:00:00 2001
From: Kyle M Hall <kyle@bywatersolutions.com>
Date: Mon, 27 Sep 2021 11:55:06 +0000
Subject: [PATCH] Bug 29121: Add POD to plugins
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
---
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 f55df4ab202..86146ba2dfb 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 7ecde3ead89..bdf5f040180 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.30.2