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;