Bug 7162: (follow-up) Add unit tests for DelOrder
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 15 Jul 2014 12:00:25 +0000 (14:00 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 30 Oct 2014 03:44:20 +0000 (00:44 -0300)
The unit tests did not take into account the new DB field.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests and QA script. Also all Acquisition related
patches.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
t/db_dependent/Acquisition.t

index cd4961c..ef611f6 100755 (executable)
@@ -8,7 +8,7 @@ use POSIX qw(strftime);
 
 use C4::Bookseller qw( GetBookSellerFromId );
 
-use Test::More tests => 87;
+use Test::More tests => 90;
 
 BEGIN {
     use_ok('C4::Acquisition');
@@ -369,6 +369,7 @@ my @expectedfields = qw(
   quantity_to_receive
   subtotal
   latesince
+  cancellationreason
 );
 (
     $test_missing_fields,   $test_extra_fields,
@@ -481,6 +482,7 @@ my @base_expectedfields = qw(
   frameworkcode
   volumedesc
   datecancellationprinted
+  cancellationreason
 );
 @expectedfields =
   ( @base_expectedfields,
@@ -608,6 +610,7 @@ ok(
   budget_id
   authorisedby
   booksellerid
+  cancellationreason
 );
 
 # note that authorisedby was added to the return of SearchOrder by the