From 2bd301b83bd1d1cc1982f31bc264116b374d940d Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Tue, 29 Aug 2023 15:16:53 +0000 Subject: [PATCH] Bug 33970: Fix tests --- t/db_dependent/Illrequestattributes.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Illrequestattributes.t b/t/db_dependent/Illrequestattributes.t index d81215fdc2..a5429ddedd 100755 --- a/t/db_dependent/Illrequestattributes.t +++ b/t/db_dependent/Illrequestattributes.t @@ -30,7 +30,7 @@ use_ok('Koha::Illrequestattributes'); subtest 'Basic object tests' => sub { - plan tests => 5; + plan tests => 6; $schema->storage->txn_begin; @@ -42,12 +42,15 @@ subtest 'Basic object tests' => sub { my $illrqattr_obj = Koha::Illrequestattributes->find( $illrqattr->{illrequest_id}, + $illrqattr->{backend}, $illrqattr->{type} ); isa_ok($illrqattr_obj, 'Koha::Illrequestattribute', "Correctly create and load an illrequestattribute object."); is($illrqattr_obj->illrequest_id, $illrqattr->{illrequest_id}, "Illrequest_id getter works."); + is($illrqattr_obj->backend, $illrqattr->{backend}, + "Backend getter works."); is($illrqattr_obj->type, $illrqattr->{type}, "Type getter works."); is($illrqattr_obj->value, $illrqattr->{value}, -- 2.30.2