-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from bunq/feature/test_readme
Add readme for tests.
- Loading branch information
Showing
21 changed files
with
67 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# bunq PHP SDK tests :mag: | ||
|
||
## Introduction | ||
Hi developers! | ||
|
||
|
||
Welcome to the bunq PHP SDK integration tests. Currently we are not | ||
targeting the 100% test coverage, but rather want to be certain that the most | ||
common scenarios can run without any errors. | ||
|
||
|
||
## Scenarios | ||
|
||
These are the scenarios that are currently being tested: | ||
* Create installation, session-server and device server | ||
* Create a new MonetaryAccount | ||
* Create a tab | ||
* Update the tab | ||
* Create attachment and avatar | ||
* Request money from first MA to second MA | ||
* Accept the request | ||
* Make a transaction from first MA to second MA | ||
* Create connect gr code | ||
* Make a payment to another sandbox user | ||
* Send a chat message in a recent payment | ||
* Delete the current session | ||
* Order a card with a second line | ||
|
||
Besides these scenarios, some code of ApiContext, ApiClient and the JSON module | ||
are also tested :thumbs_up:. | ||
|
||
## Configuration | ||
|
||
To run the tests you must first setup the test configuration JSON. The example | ||
of a configuration file is located at [`tests/resource/config.example.json`](./resource/config.example.json). | ||
In order to make use of the configuration file, please copy the example to the | ||
same directory, fill in your sandbox user data and rename the copy to config.json. | ||
## Execution | ||
|
||
You can run the tests via command line: | ||
|
||
``` | ||
vendor/phpunit/phpunit/phpunit | ||
``` | ||
|
||
or via PhpStorm, but first you must configure PhpStorm by doing the following: | ||
* Got to preferences --> Language and Frameworks --> Php --> Test Frameworks and add | ||
`sdk_php/vendor/autoload.php` as path to script with `use composer autoloader` checked. | ||
|
||
Afterwards you can right click on the tests folders and should be able to run | ||
the tests cases form the IDE. |
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.