Bug 10190: Fix unit test to exclude _X_ rules
Sponsored-by: Glasgow Colleges Library Group <https://library.cityofglasgowcollege.ac.uk> Signed-off-by: George Harkins <George.Harkins@cityofglasgowcollege.ac.uk> Signed-off-by: Michaela <michaela.sieber@kit.edu> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
parent
372c5b8c8e
commit
ca8fc3d8e9
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue