}
/**
- * Check method getFinancialAccount()
+ * Check method retrieve()
*/
public function testRetrieve() {
list($financialAccount, $financialType, $financialAccountType) = $this->createFinancialAccount(
$this->assertEquals($financialAccountType['financial_account_id'], $financialAccount->id, 'Verify Financial Account Id.');
}
- /**
- * Check method getFinancialAccount()
- */
- public function testGetFinancialAccount() {
- list($financialAccount, $financialType, $financialAccountType) = $this->createFinancialAccount(
- 'Asset'
- );
- $params = array(
- 'financial_account_id' => $financialAccount->id,
- 'payment_processor_type_id' => 1,
- 'domain_id' => 1,
- 'billing_mode' => 1,
- 'name' => 'paymentProcessor',
- );
- $processor = CRM_Financial_BAO_PaymentProcessor::create($params);
-
- $account = CRM_Financial_BAO_FinancialTypeAccount::getFinancialAccount(
- $processor->id,
- 'civicrm_payment_processor'
- );
- $this->assertEquals($account, $financialAccount->name, 'Verify Financial Account Name');
- }
-
/**
* Check method getInstrumentFinancialAccount()
*/