-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathNodeTest.php
More file actions
43 lines (34 loc) · 1.24 KB
/
NodeTest.php
File metadata and controls
43 lines (34 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
declare(strict_types=1);
namespace ArkEcosystem\Tests\Client\API;
use ArkEcosystem\Client\Client;
it('calls the correct url for status', function () {
$this->assertResponse('GET', 'node/status', function (Client $client) {
return $client->node()->status();
});
});
it('calls the correct url for syncing', function () {
$this->assertResponse('GET', 'node/syncing', function (Client $client) {
return $client->node()->syncing();
});
});
it('calls the correct url for configuration', function () {
$this->assertResponse('GET', 'node/configuration', function (Client $client) {
return $client->node()->configuration();
});
});
it('calls the correct url for crypto', function () {
$this->assertResponse('GET', 'node/configuration/crypto', function (Client $client) {
return $client->node()->crypto();
});
});
it('calls the correct url for fees', function () {
$this->assertResponse('GET', 'node/fees', function (Client $client) {
return $client->node()->fees();
});
});
it('calls the correct url for fees with query', function () {
$this->assertResponse('GET', 'node/fees?days=7', function (Client $client) {
return $client->node()->fees(['days' => 7]);
});
});