function Braintree_SubscriptionSearchTest::testSearch_statusIsPastDue in Commerce Braintree 7
File
- braintree_php/
tests/ integration/ SubscriptionSearchTest.php, line 83
Class
Code
function testSearch_statusIsPastDue() {
$found = false;
$collection = Braintree_Subscription::search(array(
Braintree_SubscriptionSearch::status()
->in(array(
Braintree_Subscription::PAST_DUE,
)),
));
foreach ($collection as $item) {
$found = true;
$this
->assertEquals(Braintree_Subscription::PAST_DUE, $item->status);
}
$this
->assertTrue($found);
}