Skip to content

Commit d82c580

Browse files
author
Berend Kapelle
committed
added test for get_bank, other preparation for v3
1 parent dc66709 commit d82c580

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "figo/figo",
33
"description": "API wrapper for figo Connect.",
44
"homepage": "https://github.com/figo-connect/php-figo",
5-
"version": "2.0.0",
5+
"version": "3.0.0",
66
"license": "MIT",
77
"autoload": {
88
"psr-0": {

figo/Session.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -251,17 +251,6 @@ public function add_account($country, $credentials, $bank_code, $iban, $save_pin
251251
return (is_null($response) ? null : new Account($this, $response));
252252
}
253253

254-
/**
255-
* Modify an account
256-
*
257-
* @param Account the modified account to be saved
258-
* @return Account 'Account' object for the updated account returned by server
259-
*/
260-
public function modify_account($account) {
261-
$response = $this->query_api("/rest/accounts/".$account->account_id, $account->dump(), "PUT");
262-
return (is_null($response) ? null : new Account($this, $response));
263-
}
264-
265254
/**
266255
* Remove an account
267256
*

test/FigoTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,5 +197,13 @@ public function test_get_catalog_unsupported_language()
197197
);
198198
$this::$connection->get_supported_payment_services(null, null, 'fr');
199199
}
200+
201+
public function test_get_bank()
202+
{
203+
$accounts = $this::$session->get_accounts();
204+
$bank_id = $accounts[0]->bank_id;
205+
$bank = $this::$session->get_bank($bank_id);
206+
$this->assertNotNull($bank);
207+
}
200208
}
201209
?>

0 commit comments

Comments
 (0)