Bugzilla – Attachment 118539 Details for
Bug 27993
Koha::Item::Transfer->in_transit should not count cancelled transfers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27993: Add unit tests
Bug-27993-Add-unit-tests.patch (text/plain), 1.19 KB, created by
Martin Renvoize (ashimema)
on 2021-03-19 13:33:04 UTC
(
hide
)
Description:
Bug 27993: Add unit tests
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-03-19 13:33:04 UTC
Size:
1.19 KB
patch
obsolete
>From 5f75f20739c37b85fdd379a571a16dca97063ec6 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 19 Mar 2021 13:31:10 +0000 >Subject: [PATCH] Bug 27993: Add unit tests > >This patch adds a unit test to check that 'in_transit' takes >datecancelled into account. >--- > t/db_dependent/Koha/Item/Transfer.t | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/Item/Transfer.t b/t/db_dependent/Koha/Item/Transfer.t >index c2bdd2cb7d..22b82be628 100755 >--- a/t/db_dependent/Koha/Item/Transfer.t >+++ b/t/db_dependent/Koha/Item/Transfer.t >@@ -173,7 +173,7 @@ subtest 'receive tests' => sub { > > subtest 'in_transit tests' => sub { > >- plan tests => 3; >+ plan tests => 4; > > $schema->storage->txn_begin; > >@@ -203,6 +203,8 @@ subtest 'in_transit tests' => sub { > $transfer->datearrived(dt_from_string)->store; > ok( !$transfer->in_transit, 'in_transit returns false when datearrived is defined'); > >+ $transfer->set( { datearrived => undef, datecancelled => dt_from_string } )->store; >+ ok( !$transfer->in_transit, 'in_transit returns false when datecancelled is defined'); > > $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 27993
:
118539
|
118540
|
118578
|
118586
|
118587
|
118588
|
118589