diff --git a/t/db_dependent/FrameworkPlugin.t b/t/db_dependent/FrameworkPlugin.t index 41baf49153..c3031ac22f 100755 --- a/t/db_dependent/FrameworkPlugin.t +++ b/t/db_dependent/FrameworkPlugin.t @@ -144,6 +144,7 @@ sub test05 { my $mOutput = Test::MockModule->new('C4::Output'); $mContext->mock( 'userenv', \&mock_userenv ); $mAuth->mock( 'checkauth', sub { return ( 1, undef, 1, all_perms() ); } ); + $mAuth->mock( 'check_cookie_auth', sub { return ('ok') } ); $mOutput->mock('output_html_with_http_headers', sub { ++$launched; } ); my $cgi=CGI->new; diff --git a/t/db_dependent/Koha/UI/Form/Builder/Biblio.t b/t/db_dependent/Koha/UI/Form/Builder/Biblio.t index cdf93c4880..ed5d582ef0 100755 --- a/t/db_dependent/Koha/UI/Form/Builder/Biblio.t +++ b/t/db_dependent/Koha/UI/Form/Builder/Biblio.t @@ -18,6 +18,7 @@ use Modern::Perl; use Test::More tests => 7; +use Test::MockModule; use C4::ClassSource; @@ -26,6 +27,10 @@ use Koha::DateUtils qw( dt_from_string ); use Koha::ItemTypes; use Koha::Libraries; +# Auth required for cataloguing plugins +my $mAuth = Test::MockModule->new('C4::Auth'); +$mAuth->mock( 'check_cookie_auth', sub { return ('ok') } ); + my $schema = Koha::Database->new->schema; $schema->storage->txn_begin; diff --git a/t/db_dependent/Koha/UI/Form/Builder/Item.t b/t/db_dependent/Koha/UI/Form/Builder/Item.t index dedbb31775..de82c7741c 100755 --- a/t/db_dependent/Koha/UI/Form/Builder/Item.t +++ b/t/db_dependent/Koha/UI/Form/Builder/Item.t @@ -17,6 +17,7 @@ use Modern::Perl; use Test::More tests => 9; +use Test::MockModule; use Data::Dumper qw( Dumper ); use utf8; @@ -28,6 +29,10 @@ use Koha::UI::Form::Builder::Item; use t::lib::TestBuilder; use t::lib::Mocks; +# Auth required for cataloguing plugins +my $mAuth = Test::MockModule->new('C4::Auth'); +$mAuth->mock( 'check_cookie_auth', sub { return ('ok') } ); + my $schema = Koha::Database->new->schema; $schema->storage->txn_begin;