Bugzilla – Attachment 96993 Details for
Bug 24277
Date Received in acquisitions cannot be changed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24277: Regression tests
Bug-24277-Regression-tests.patch (text/plain), 1.93 KB, created by
Tomás Cohen Arazi (tcohen)
on 2020-01-08 13:58:46 UTC
(
hide
)
Description:
Bug 24277: Regression tests
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2020-01-08 13:58:46 UTC
Size:
1.93 KB
patch
obsolete
>From 40cb6c95dd63ac6ab25882e9430579311c0bbb67 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 8 Jan 2020 10:55:40 -0300 >Subject: [PATCH] Bug 24277: Regression tests > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > t/db_dependent/Acquisition.t | 25 +++++++++++++++++++++++-- > 1 file changed, 23 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Acquisition.t b/t/db_dependent/Acquisition.t >index 781a235ada..a367aa8987 100755 >--- a/t/db_dependent/Acquisition.t >+++ b/t/db_dependent/Acquisition.t >@@ -19,9 +19,10 @@ use Modern::Perl; > > use POSIX qw(strftime); > >-use Test::More tests => 78; >+use Test::More tests => 79; > use t::lib::Mocks; > use Koha::Database; >+use Koha::DateUtils qw(dt_from_string output_pref); > use Koha::Acquisition::Basket; > > use MARC::File::XML ( BinaryEncoding => 'utf8', RecordFormat => 'MARC21' ); >@@ -304,16 +305,36 @@ my $invoiceid = AddInvoice( > > my $invoice = GetInvoice( $invoiceid ); > >+my $reception_date = output_pref( >+ { >+ dt => dt_from_string->add( days => 1 ), >+ dateformat => 'iso', >+ dateonly => 1, >+ } >+); > my ($datereceived, $new_ordernumber) = ModReceiveOrder( > { > biblionumber => $biblionumber4, > order => Koha::Acquisition::Orders->find( $ordernumbers[4] )->unblessed, > quantityreceived => 1, > invoice => $invoice, >- budget_id => $order_content[4]->{str}->{budget_id}, >+ budget_id => $order_content[4]->{str}->{budget_id}, >+ datereceived => $reception_date, > } > ); > >+is( >+ output_pref( >+ { >+ dt => dt_from_string($datereceived), >+ dateformat => 'iso', >+ dateonly => 1 >+ } >+ ), >+ $reception_date, >+ 'ModReceiveOrder sets the passed date' >+); >+ > my $search_orders = SearchOrders({ > booksellerid => $booksellerid, > basketno => $basketno >-- >2.24.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 24277
:
96611
|
96614
| 96993 |
96994