function Braintree_MultipleValueNodeTest::testIs in Commerce Braintree 7
Same name in this branch
- 7 braintree_php/tests/unit/MultipleValueNodeTest.php \Braintree_MultipleValueNodeTest::testIs()
- 7 braintree_php/tests/integration/MultipleValueNodeTest.php \Braintree_MultipleValueNodeTest::testIs()
File
- braintree_php/
tests/ integration/ MultipleValueNodeTest.php, line 37
Class
Code
function testIs() {
$found = false;
$collection = Braintree_Subscription::search(array(
Braintree_SubscriptionSearch::status()
->is(Braintree_Subscription::PAST_DUE),
));
foreach ($collection as $item) {
$found = true;
$this
->assertEquals(Braintree_Subscription::PAST_DUE, $item->status);
}
$this
->assertTrue($found);
}