From e9a168720fde9921dceb360fbd0877df4a05dcc1 Mon Sep 17 00:00:00 2001
From: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Date: Thu, 21 Jan 2021 14:27:44 +0000
Subject: [PATCH] Bug 26057: (QA follow-up) Drop test for 'reason'
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

We decided this test was superflous to requirements and as such I've
removed it as requested.

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/Koha/Item/Transfer.t | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/t/db_dependent/Koha/Item/Transfer.t b/t/db_dependent/Koha/Item/Transfer.t
index 01a32866fd..1bc6d7fa9f 100755
--- a/t/db_dependent/Koha/Item/Transfer.t
+++ b/t/db_dependent/Koha/Item/Transfer.t
@@ -208,7 +208,7 @@ subtest 'in_transit tests' => sub {
 };
 
 subtest 'cancel tests' => sub {
-    plan tests => 6;
+    plan tests => 5;
 
     $schema->storage->txn_begin;
 
@@ -256,7 +256,6 @@ subtest 'cancel tests' => sub {
     $transfer->cancel($cancellation_reason);
     ok( $transfer->datecancelled, 'Cancellation date set upon call to cancel' );
     is( $transfer->cancellation_reason, 'Manual', 'Cancellation reason is set');
-    is( $transfer->reason, 'Manual', 'Reason is not updated by cancelling the transfer' );
 
     $schema->storage->txn_rollback;
 };
-- 
2.20.1