From ca8fc3d8e904bd8cc3c8a8916b1f5dd81a6fea45 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 Signed-off-by: George Harkins Signed-off-by: Michaela Signed-off-by: Nick Clemens Signed-off-by: Pedro Amorim --- 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 df7bab4f84..b180716026 100755 --- a/t/db_dependent/api/v1/circulation_rules.t +++ b/t/db_dependent/api/v1/circulation_rules.t @@ -35,7 +35,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;