Bugzilla – Attachment 110914 Details for
Bug 26524
Add Koha::Acquisition::Basket->orders
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26524: Save some processor cycles
Bug-26524-Save-some-processor-cycles.patch (text/plain), 1.10 KB, created by
Jonathan Druart
on 2020-09-29 14:06:57 UTC
(
hide
)
Description:
Bug 26524: Save some processor cycles
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-09-29 14:06:57 UTC
Size:
1.10 KB
patch
obsolete
>From c4e3f89b1b3c0792c3dcbcb7df37c9e75e300cbd Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 29 Sep 2020 16:06:19 +0200 >Subject: [PATCH] Bug 26524: Save some processor cycles > >--- > t/db_dependent/Koha/Acquisition/Basket.t | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Koha/Acquisition/Basket.t b/t/db_dependent/Koha/Acquisition/Basket.t >index abe3d12a9f..cd2e09d3f0 100755 >--- a/t/db_dependent/Koha/Acquisition/Basket.t >+++ b/t/db_dependent/Koha/Acquisition/Basket.t >@@ -290,13 +290,13 @@ subtest 'orders' => sub { > > my @actual_orders; > >- for ( 1..10 ) { >+ for ( 1..3 ) { > push @actual_orders, $builder->build_object({ class => 'Koha::Acquisition::Orders', value => { basketno => $basket->id } }); > } > > $orders = $basket->orders; > is( ref($orders), 'Koha::Acquisition::Orders', 'Type is correct with no attached orders' ); >- is( $orders->count, 10, '10 orders attached, count 10' ); >+ is( $orders->count, 3, '3 orders attached, count 3' ); > > $schema->storage->txn_rollback; > }; >-- >2.20.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 26524
:
110616
|
110617
|
110622
|
110623
|
110797
|
110798
| 110914