public function testFind_throwsIfNotFound() { $this->setExpectedException('Braintree\\Exception\\NotFound', 'merchant account with id does-not-exist not found'); Braintree\MerchantAccount::find('does-not-exist'); }
/** * @param string $merchantId * @return MerchantAccount */ public function findMerchant($merchantId) { return MerchantAccount::find($merchantId); }