mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
remove currency tests
This commit is contained in:
@ -23,52 +23,3 @@ test('get all used currencies', function () {
|
|||||||
getJson("/api/v1/currencies/used")
|
getJson("/api/v1/currencies/used")
|
||||||
->assertOk();
|
->assertOk();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('get supported currencies of currency freak', function () {
|
|
||||||
$driver = [
|
|
||||||
'driver' => "currency_freak",
|
|
||||||
'key' => "9ab5bc6424604778ad61103b628518f8"
|
|
||||||
];
|
|
||||||
|
|
||||||
$queryString = http_build_query($driver, '', '&');
|
|
||||||
|
|
||||||
getJson("/api/v1/supported-currencies?".$queryString)
|
|
||||||
->assertOk();
|
|
||||||
});
|
|
||||||
|
|
||||||
test('get supported currencies of currency layer', function () {
|
|
||||||
$driver = [
|
|
||||||
'driver' => "currency_layer",
|
|
||||||
'key' => "2bb7a25e6f24f42a66fde1f57b5210fd"
|
|
||||||
];
|
|
||||||
|
|
||||||
$queryString = http_build_query($driver, '', '&');
|
|
||||||
|
|
||||||
getJson("/api/v1/supported-currencies?".$queryString)
|
|
||||||
->assertOk();
|
|
||||||
});
|
|
||||||
|
|
||||||
test('get supported currencies of open exchange rate', function () {
|
|
||||||
$driver = [
|
|
||||||
'driver' => "open_exchange_rate",
|
|
||||||
'key' => "c5f404d414d245209923cd4f2d4c3875"
|
|
||||||
];
|
|
||||||
|
|
||||||
$queryString = http_build_query($driver, '', '&');
|
|
||||||
|
|
||||||
getJson("/api/v1/supported-currencies?".$queryString)
|
|
||||||
->assertOk();
|
|
||||||
});
|
|
||||||
|
|
||||||
test('get supported currencies of currency converter', function () {
|
|
||||||
$driver = [
|
|
||||||
'driver' => "currency_converter",
|
|
||||||
'key' => "0a1cef4d5f6fd01cc87a",
|
|
||||||
'type' => 'FREE'
|
|
||||||
];
|
|
||||||
|
|
||||||
$queryString = http_build_query($driver, '', '&');
|
|
||||||
|
|
||||||
getJson("/api/v1/supported-currencies?".$queryString)
|
|
||||||
->assertOk();
|
|
||||||
});
|
|
||||||
|
|||||||
Reference in New Issue
Block a user