From 58fa70cbbc62c5af8b340c043725373a637a6311 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 --- 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 bbc70e2c23a..1e567758670 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; -- 2.51.0