From f9beb88579664fdb1fbf832220045e140dc3f439 Mon Sep 17 00:00:00 2001 From: Axel Amghar Date: Tue, 23 Apr 2019 17:11:21 +0200 Subject: [PATCH] Bug 20340: add of empty method configure --- t/Koha/Plugin/TestAuth.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/t/Koha/Plugin/TestAuth.pm b/t/Koha/Plugin/TestAuth.pm index 438213b..164e868 100644 --- a/t/Koha/Plugin/TestAuth.pm +++ b/t/Koha/Plugin/TestAuth.pm @@ -38,6 +38,11 @@ sub new { return $self; } +sub configure { + my ($self , $args) = @_; + $self->go_home(); +} + =head2 retrieve_data Just return priority. It overrides the one in Koha::Plugin::Base for the test. @@ -65,7 +70,7 @@ sub retrieve_data { sub checkpw { my ( $self, $dbh, $userid, $password, $query, $type, $no_set_userenv ) = @_; - if ( $userid = 'test' && $password eq 'test' ) { + if ( $userid eq 'test' && $password eq 'test' ) { return (1, 'test', 'test'); } -- 2.7.4