function test_multipleValueNode_paymentInstrumentType_is_applepay() { $transaction = Braintree_Transaction::saleNoValidate(array('amount' => Braintree_Test_TransactionAmounts::$authorize, 'paymentMethodNonce' => Braintree_Test_Nonces::$applePayVisa)); $collection = Braintree_Transaction::search(array(Braintree_TransactionSearch::id()->is($transaction->id), Braintree_TransactionSearch::paymentInstrumentType()->is("ApplePayDetail"))); $this->assertEquals($transaction->paymentInstrumentType, Braintree_PaymentInstrumentType::APPLE_PAY_CARD); $this->assertEquals($transaction->id, $collection->firstItem()->id); }