From 613a1a5476a554e2de2e6e4cb30256a161e30fd6 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 6 Oct 2021 15:45:17 +0200 Subject: [PATCH] Bug 28445: Improve robustness of tests * Libraries are ordered by name by default but if others have been added the test may fail Signed-off-by: Nick Clemens Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/Koha/UI/Form/Builder/Item.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/UI/Form/Builder/Item.t b/t/db_dependent/Koha/UI/Form/Builder/Item.t index 413d837c8c..386241c637 100755 --- a/t/db_dependent/Koha/UI/Form/Builder/Item.t +++ b/t/db_dependent/Koha/UI/Form/Builder/Item.t @@ -96,7 +96,7 @@ subtest 'authorised values' => sub { subtest 'branches' => sub { plan tests => 2; my ( $subfield ) = grep { $_->{kohafield} eq 'items.homebranch' } @$subfields; - my $libraries = Koha::Libraries->search; + my $libraries = Koha::Libraries->search({}, { order_by => 'branchname' }); is_deeply( $subfield->{marc_value}->{values}, [ $libraries->get_column('branchcode') ] -- 2.33.1