Bug 11224: (follow-up) clean up unit test for bug 10723
authorGalen Charlton <gmc@esilibrary.com>
Mon, 10 Mar 2014 16:44:00 +0000 (16:44 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 10 Mar 2014 16:44:00 +0000 (16:44 +0000)
This patch removes the remainder of the old unit test
for bug 10723 and updates the label of the new test that
now checks that SearchOrders({ pending => 1}) omits received
orders.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
t/db_dependent/Acquisition.t

index 9d0b124..87f0f0f 100755 (executable)
@@ -697,7 +697,7 @@ ok(
             ),
             @$search_orders )
     ),
-    "SearchOrders with pending params gets only pending orders"
+    "SearchOrders with pending params gets only pending orders (bug 10723)"
 );
 
 #
@@ -773,15 +773,6 @@ is(
     "AddClaim : Check claimed_date"
 );
 
-my $firstorder = $search_orders->[0];
-
-# fake receiving the order
-ModOrder({
-    ordernumber      => $firstorder->{ordernumber},
-    biblionumber     => $firstorder->{biblionumber},
-    quantityreceived => $firstorder->{quantity},
-});
-
 ( $datereceived, $new_ordernumber ) =
   ModReceiveOrder( $biblionumber2, $ordernumbers[1], 2, undef, 12, 12,
     $invoiceid, 42, );