Skip to content

Commit

Permalink
MINOR: additional assertions to catch empty datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Stephens committed Dec 6, 2010
1 parent 82d8302 commit eedc89d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/DPSPayment/DPSPaymentTest.php
Expand Up @@ -353,6 +353,8 @@ function testDBTransaction(){
$payment->payNext();
}

$this->assertType('DataObjectSet', $payment->Payments());
$this->assertType('DataObjectSet', $payment->SuccessPayments());
$this->assertEquals($payment->Payments()->count(), 3);
$this->assertEquals($payment->SuccessPayments()->count(), 2);
}
Expand Down

0 comments on commit eedc89d

Please sign in to comment.