bug 2525: fixing tests for misc/cronjobs/longoverdue.pl
authorAndrew Moore <andrew.moore@liblime.com>
Fri, 15 Aug 2008 16:40:05 +0000 (11:40 -0500)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 28 Oct 2008 21:09:23 +0000 (22:09 +0100)
This patch fixes the tests so that they include the new required parameters for longoverdues.pl.

This patch also doesn't include a test script that accidently got in the last one.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
t/lib/KohaTest/Scripts/longoverdue.pm

index dcfb1a4..ea1c317 100644 (file)
@@ -86,7 +86,7 @@ sub set_overdue_item_lost : Test( 12 ) {
     is( $issued_item->{'itemlost'}, 0, 'the item is not lost' );
     # diag( Data::Dumper->Dump( [ $issued_item ], [ 'issued_item' ] ) );
 
-    qx( ../misc/cronjobs/longoverdue.pl );
+    qx( ../misc/cronjobs/longoverdue.pl --lost 90=2 --confirm );
 
     my $lost_item = C4::Items::GetItem( $self->{'overdueitemnumber'} );
     is( $lost_item->{'onloan'}, $duedateyyyymmdd, "the item is checked out and due $duedatestring" );