Bug 15504: (follow-up) Add Triggers mock to unit tests

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2023-10-06 11:16:48 +01:00 committed by Tomas Cohen Arazi
parent 0ae97bba6b
commit 91b7799c96
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 6 additions and 1 deletions

View file

@ -47,6 +47,8 @@ subtest 'AuthenticatePatron test' => sub {
$schema->storage->txn_begin;
t::lib::Mocks::mock_preference( 'TrackLastPatronActivityTriggers', 'connection' );
my $plain_password = 'tomasito';
$builder->build({

View file

@ -189,10 +189,13 @@ subtest 'hold_patron_name() tests' => sub {
subtest 'Lastseen response' => sub {
plan tests => 6;
my $schema = Koha::Database->new->schema;
$schema->storage->txn_begin;
plan tests => 6;
t::lib::Mocks::mock_preference( 'TrackLastPatronActivityTriggers', 'connection' );
my $builder = t::lib::TestBuilder->new();
my $branchcode = $builder->build({ source => 'Branch' })->{branchcode};
my ( $response, $findpatron );