From f0fc7ed1f3232bbd15a70a5f63513d6c8af9673e Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 14 Aug 2024 05:26:04 +0100 Subject: [PATCH] Bug 10190: Fix unit test to exclude _X_ rules Sponsored-by: Glasgow Colleges Library Group --- t/db_dependent/api/v1/circulation_rules.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/api/v1/circulation_rules.t b/t/db_dependent/api/v1/circulation_rules.t index 4b867482822..6d107c68c44 100755 --- a/t/db_dependent/api/v1/circulation_rules.t +++ b/t/db_dependent/api/v1/circulation_rules.t @@ -34,7 +34,7 @@ t::lib::Mocks::mock_preference( 'RESTBasicAuth', 1 ); subtest 'list_rules() tests' => sub { - my $expected_rules = [ keys %{ Koha::CirculationRules->rule_kinds } ]; + my $expected_rules = [ grep { $_ !~ /_X_/ } keys %{ Koha::CirculationRules->rule_kinds } ]; plan tests => ( scalar( @{$expected_rules} ) * 2 ) + 39; -- 2.46.0