From 4da6a0c00a24eae3994e1a47fdb3172a7d5deb15 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 3 Sep 2021 10:16:01 -0300 Subject: [PATCH] Bug 24857: Do not depend on bug 28883 Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/Koha/Biblio.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/db_dependent/Koha/Biblio.t b/t/db_dependent/Koha/Biblio.t index 2cb6fa4d40..2e40b15b6f 100755 --- a/t/db_dependent/Koha/Biblio.t +++ b/t/db_dependent/Koha/Biblio.t @@ -646,18 +646,18 @@ subtest 'item_groups() tests' => sub { my $biblio = $builder->build_sample_biblio(); - my @item_groups = $biblio->item_groups; + my @item_groups = $biblio->item_groups->as_list; is( scalar(@item_groups), 0, 'Got zero item groups'); my $item_group_1 = Koha::Biblio::ItemGroup->new( { biblio_id => $biblio->id } )->store(); - @item_groups = $biblio->item_groups; + @item_groups = $biblio->item_groups->as_list; is( scalar(@item_groups), 1, 'Got one item group'); is( $item_groups[0]->id, $item_group_1->id, 'Got correct item group'); my $item_group_2 = Koha::Biblio::ItemGroup->new( { biblio_id => $biblio->id } )->store(); - @item_groups = $biblio->item_groups; + @item_groups = $biblio->item_groups->as_list; is( scalar(@item_groups), 2, 'Got two item groups'); is( $item_groups[0]->id, $item_group_1->id, 'Got correct item group 1'); is( $item_groups[1]->id, $item_group_2->id, 'Got correct item group 2'); -- 2.30.2