|
4 | 4 |
|
5 | 5 | namespace ArkEcosystem\Tests\Client\API; |
6 | 6 |
|
7 | | -use ArkEcosystem\Client\ArkClient; |
| 7 | +use ArkEcosystem\Client\Client; |
8 | 8 |
|
9 | 9 | it('calls the correct url for status', function () { |
10 | | - $this->assertResponse('GET', 'node/status', function (ArkClient $client) { |
| 10 | + $this->assertResponse('GET', 'node/status', function (Client $client) { |
11 | 11 | return $client->node()->status(); |
12 | 12 | }); |
13 | 13 | }); |
14 | 14 |
|
15 | 15 | it('calls the correct url for syncing', function () { |
16 | | - $this->assertResponse('GET', 'node/syncing', function (ArkClient $client) { |
| 16 | + $this->assertResponse('GET', 'node/syncing', function (Client $client) { |
17 | 17 | return $client->node()->syncing(); |
18 | 18 | }); |
19 | 19 | }); |
20 | 20 |
|
21 | 21 | it('calls the correct url for configuration', function () { |
22 | | - $this->assertResponse('GET', 'node/configuration', function (ArkClient $client) { |
| 22 | + $this->assertResponse('GET', 'node/configuration', function (Client $client) { |
23 | 23 | return $client->node()->configuration(); |
24 | 24 | }); |
25 | 25 | }); |
26 | 26 |
|
27 | 27 | it('calls the correct url for crypto', function () { |
28 | | - $this->assertResponse('GET', 'node/configuration/crypto', function (ArkClient $client) { |
| 28 | + $this->assertResponse('GET', 'node/configuration/crypto', function (Client $client) { |
29 | 29 | return $client->node()->crypto(); |
30 | 30 | }); |
31 | 31 | }); |
32 | 32 |
|
33 | 33 | it('calls the correct url for fees', function () { |
34 | | - $this->assertResponse('GET', 'node/fees', function (ArkClient $client) { |
| 34 | + $this->assertResponse('GET', 'node/fees', function (Client $client) { |
35 | 35 | return $client->node()->fees(); |
36 | 36 | }); |
37 | 37 | }); |
| 38 | + |
| 39 | +it('calls the correct url for fees with query', function () { |
| 40 | + $this->assertResponse('GET', 'node/fees?days=7', function (Client $client) { |
| 41 | + return $client->node()->fees(7); |
| 42 | + }); |
| 43 | +}); |
0 commit comments