Bug 19173: Make OPAC online payments pluggable
[koha.git] / t / Koha / Plugin / Test.pm
blob636554d1dece59ae1b4bc9f6156852dfa2614916
1 package Koha::Plugin::Test;
3 ## It's good practice to use Modern::Perl
4 use Modern::Perl;
6 ## Required for all plugins
7 use base qw(Koha::Plugins::Base);
9 our $VERSION = 1.01;
10 our $metadata = {
11 name => 'Test Plugin',
12 author => 'Kyle M Hall',
13 description => 'Test plugin',
14 date_authored => '2013-01-14',
15 date_updated => '2013-01-14',
16 minimum_version => '3.11',
17 maximum_version => undef,
18 version => $VERSION,
19 my_example_tag => 'find_me',
22 ## This is the minimum code required for a plugin's 'new' method
23 ## More can be added, but none should be removed
24 sub new {
25 my ( $class, $args ) = @_;
26 $args->{'metadata'} = $metadata;
27 my $self = $class->SUPER::new($args);
28 return $self;
31 sub report {
32 my ( $self, $args ) = @_;
33 return "Koha::Plugin::Test::report";
36 sub tool {
37 my ( $self, $args ) = @_;
38 return "Koha::Plugin::Test::tool";
41 sub to_marc {
42 my ( $self, $args ) = @_;
43 return "Koha::Plugin::Test::to_marc";
46 sub opac_online_payment {
47 my ( $self, $args ) = @_;
48 return "Koha::Plugin::Test::opac_online_payment";
51 sub opac_online_payment_begin {
52 my ( $self, $args ) = @_;
53 return "Koha::Plugin::Test::opac_online_payment_begin";
56 sub opac_online_payment_end {
57 my ( $self, $args ) = @_;
58 return "Koha::Plugin::Test::opac_online_payment_end";
61 sub configure {
62 my ( $self, $args ) = @_;
63 return "Koha::Plugin::Test::configure";;
66 sub install {
67 my ( $self, $args ) = @_;
68 return "Koha::Plugin::Test::install";
71 sub uninstall {
72 my ( $self, $args ) = @_;
73 return "Koha::Plugin::Test::uninstall";