Bugzilla – Attachment 143743 Details for
Bug 9525
Add option to define float groups and rules for float
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9525: Fix tests
0004-Bug-9525-Fix-tests.patch (text/plain), 2.61 KB, created by
Emmi Takkinen
on 2022-11-11 07:28:07 UTC
(
hide
)
Description:
Bug 9525: Fix tests
Filename:
MIME Type:
Creator:
Emmi Takkinen
Created:
2022-11-11 07:28:07 UTC
Size:
2.61 KB
patch
obsolete
>From 0807e4faeec3492f42ff7010e35f9e05783293e5 Mon Sep 17 00:00:00 2001 >From: Emmi Takkinen <emmi.takkinen@koha-suomi.fi> >Date: Fri, 11 Nov 2022 09:24:37 +0200 >Subject: [PATCH 4/4] Bug 9525: Fix tests > >To test prove t/db_dependent/Koha/Libraries.t > >Sponsored-by: Koha-Suomi Oy >--- > t/db_dependent/Koha/Libraries.t | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > >diff --git a/t/db_dependent/Koha/Libraries.t b/t/db_dependent/Koha/Libraries.t >index 419dcbf0da..c2477c2f97 100755 >--- a/t/db_dependent/Koha/Libraries.t >+++ b/t/db_dependent/Koha/Libraries.t >@@ -19,7 +19,7 @@ > > use Modern::Perl; > >-use Test::More tests => 12; >+use Test::More tests => 13; > > use C4::Biblio; > use C4::Context; >@@ -342,8 +342,8 @@ subtest 'get_float_libraries and validate_float_sibling' => sub { > my $library3 = $builder->build_object({ class => 'Koha::Libraries' }); > my $library4 = $builder->build_object({ class => 'Koha::Libraries' }); > >- my $root1 = $builder->build_object( { class => 'Koha::Library::Groups', value => { ft_local_hold_group => 1 } } ); >- my $root2 = $builder->build_object( { class => 'Koha::Library::Groups', value => { ft_local_hold_group => 1 } } ); >+ my $root1 = $builder->build_object( { class => 'Koha::Library::Groups', value => { ft_local_float_group => 1 } } ); >+ my $root2 = $builder->build_object( { class => 'Koha::Library::Groups', value => { ft_local_float_group => 1 } } ); > # Float group 1 > $builder->build_object( { class => 'Koha::Library::Groups', value => { parent_id => $root1->id, branchcode => $library1->branchcode } } ); > $builder->build_object( { class => 'Koha::Library::Groups', value => { parent_id => $root1->id, branchcode => $library2->branchcode } } ); >@@ -351,10 +351,10 @@ subtest 'get_float_libraries and validate_float_sibling' => sub { > $builder->build_object( { class => 'Koha::Library::Groups', value => { parent_id => $root2->id, branchcode => $library3->branchcode } } ); > $builder->build_object( { class => 'Koha::Library::Groups', value => { parent_id => $root2->id, branchcode => $library4->branchcode } } ); > >- my @libraries1 = $library1->get_float_libraries(); >+ my @libraries1 = $library1->get_float_libraries()->as_list; > is(scalar @libraries1, '2', '1st float group contains 2 libraries'); > >- my @libraries2 = $library3->get_float_libraries(); >+ my @libraries2 = $library3->get_float_libraries()->as_list; > is(scalar @libraries2, '2', '2nd float group also contains 2 libraries'); > > ok($library1->validate_float_sibling({ branchcode => $library2->branchcode }), "Library1 and library2 belong in to the same float group."); >-- >2.34.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9525
:
40077
|
40102
|
40103
|
44754
|
44756
|
44760
|
48310
|
100420
|
100421
|
100422
|
100741
|
100742
|
100743
|
103828
|
103829
|
103830
|
103831
|
112550
|
112551
|
112552
|
112553
|
124825
|
124826
|
124827
|
133071
|
133072
|
133073
|
139024
|
139025
|
139026
|
143740
|
143741
|
143742
|
143743
|
150241
|
150242
|
150243
|
150244
|
150245
|
150246
|
156330
|
156331
|
156332
|
156333
|
156334
|
156335
|
156336