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:
parent
0ae97bba6b
commit
91b7799c96
2 changed files with 6 additions and 1 deletions
|
@ -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({
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue