You are here

function Braintree_TransactionAdvancedSearchTest::test_multipleValueNode_status_authorizationExpired in Commerce Braintree 7

File

braintree_php/tests/integration/TransactionAdvancedSearchTest.php, line 468

Class

Braintree_TransactionAdvancedSearchTest

Code

function test_multipleValueNode_status_authorizationExpired() {
  $collection = Braintree_Transaction::search(array(
    Braintree_TransactionSearch::status()
      ->is(Braintree_Transaction::AUTHORIZATION_EXPIRED),
  ));
  $this
    ->assertGreaterThan(0, $collection
    ->maximumCount());
  $this
    ->assertEquals(Braintree_Transaction::AUTHORIZATION_EXPIRED, $collection
    ->firstItem()->status);
}