/** * @return MultipleValueNode */ public function paymentInstrumentType() { return TransactionSearch::paymentInstrumentType(); }
public function test_multipleValueNode_paymentInstrumentType_is_applepay() { $transaction = Braintree\Transaction::saleNoValidate(['amount' => Braintree\Test\TransactionAmounts::$authorize, 'paymentMethodNonce' => Braintree\Test\Nonces::$applePayVisa]); $collection = Braintree\Transaction::search([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); }