function Braintree_SubscriptionSearchTest::test_noRequestsWhenIterating in Commerce Braintree 7
File
- braintree_php/
tests/ integration/ SubscriptionSearchTest.php, line 34
Class
Code
function test_noRequestsWhenIterating() {
$resultsReturned = false;
$collection = Braintree_Subscription::search(array(
Braintree_SubscriptionSearch::planId()
->is('imaginary'),
));
foreach ($collection as $transaction) {
$resultsReturned = true;
break;
}
$this
->assertSame(0, $collection
->maximumCount());
$this
->assertEquals(false, $resultsReturned);
}