Bugzilla – Attachment 116569 Details for
Bug 24446
Stockrotation: Update to use daterequested in branchtransfers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24446: (QA follow-up) Fix ModItemTransfer tests
Bug-24446-QA-follow-up-Fix-ModItemTransfer-tests.patch (text/plain), 2.68 KB, created by
Martin Renvoize (ashimema)
on 2021-02-09 11:12:17 UTC
(
hide
)
Description:
Bug 24446: (QA follow-up) Fix ModItemTransfer tests
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-02-09 11:12:17 UTC
Size:
2.68 KB
patch
obsolete
>From c6ccb9fa4d1b3306127183c30a913bce3ffc31f5 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 21 Jan 2021 14:49:48 +0000 >Subject: [PATCH] Bug 24446: (QA follow-up) Fix ModItemTransfer tests >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Seems I missed passing trigger in the tests for ModItemTransfer. This >patch corrects that oversight. > >Signed-off-by: Kathleen Milne <kathleen.milne@cne-siar.gov.uk> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi> >--- > t/db_dependent/Circulation/transfers.t | 19 +++++++++++++------ > 1 file changed, 13 insertions(+), 6 deletions(-) > >diff --git a/t/db_dependent/Circulation/transfers.t b/t/db_dependent/Circulation/transfers.t >index 215afad81a..7ad80f31d6 100755 >--- a/t/db_dependent/Circulation/transfers.t >+++ b/t/db_dependent/Circulation/transfers.t >@@ -111,10 +111,12 @@ my $item_id4 = Koha::Item->new( > )->store->itemnumber; > > #Add transfers >+my $trigger = 'Manual'; > ModItemTransfer( > $item_id1, > $branchcode_1, >- $branchcode_2 >+ $branchcode_2, >+ $trigger > ); > > my $item_obj = Koha::Items->find({ itemnumber => $item_id1 }); >@@ -123,14 +125,16 @@ is( $item_obj->holdingbranch, $branchcode_1, "Item should be held at branch that > ModItemTransfer( > $item_id2, > $branchcode_1, >- $branchcode_2 >+ $branchcode_2, >+ $trigger > ); > > # Add an "unsent" transfer for tests > ModItemTransfer( > $item_id3, > $branchcode_1, >- $branchcode_2 >+ $branchcode_2, >+ $trigger > ); > my $transfer_requested = Koha::Item::Transfers->search( { itemnumber => $item_id3 }, { rows => 1 })->single; > $transfer_requested->set({ daterequested => dt_from_string, datesent => undef })->store; >@@ -139,7 +143,8 @@ $transfer_requested->set({ daterequested => dt_from_string, datesent => undef }) > ModItemTransfer( > $item_id4, > $branchcode_1, >- $branchcode_2 >+ $branchcode_2, >+ $trigger > ); > my $transfer_cancelled = Koha::Item::Transfers->search( { itemnumber => $item_id4 }, { rows => 1 })->single; > $transfer_cancelled->set( { daterequested => dt_from_string, datesent => undef, datecancelled => dt_from_string } )->store; >@@ -239,13 +244,15 @@ $dbh->do("DELETE FROM branchtransfers"); > ModItemTransfer( > $item_id1, > $branchcode_1, >- $branchcode_2 >+ $branchcode_2, >+ $trigger > ); > my $transfer = Koha::Item::Transfers->search()->next(); > ModItemTransfer( > $item_id1, > $branchcode_1, >- $branchcode_2 >+ $branchcode_2, >+ $trigger > ); > $transfer->{_result}->discard_changes; > ok( $transfer->datearrived, 'Date arrived is set when new transfer is initiated' ); >-- >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 24446
:
105943
|
105944
|
105945
|
107246
|
107247
|
107248
|
107249
|
107250
|
107252
|
107253
|
107254
|
107255
|
107256
|
107301
|
107302
|
107303
|
107304
|
107305
|
110280
|
110281
|
110282
|
110283
|
110533
|
110534
|
110535
|
110536
|
110537
|
110538
|
110539
|
110540
|
110541
|
110542
|
111322
|
116557
|
116558
|
116559
|
116560
|
116561
|
116562
|
116563
|
116564
|
116565
|
116566
|
116567
|
116568
|
116569
|
116570
|
117589
|
117590
|
117591
|
117592
|
117593
|
117594
|
117595
|
117596
|
117597
|
117598
|
117599
|
117600
|
117601
|
117602
|
117603
|
117604
|
117605
|
117606
|
117607
|
120116