-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathBlocksTest.php
More file actions
37 lines (29 loc) · 1.03 KB
/
BlocksTest.php
File metadata and controls
37 lines (29 loc) · 1.03 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
<?php
declare(strict_types=1);
namespace ArkEcosystem\Tests\Client\API;
use ArkEcosystem\Client\ArkClient;
it('calls correct url for all', function () {
$this->assertResponse('GET', 'blocks', function (ArkClient $client) {
return $client->blocks()->all();
});
});
it('calls correct url for get', function () {
$this->assertResponse('GET', 'blocks/dummy', function (ArkClient $client) {
return $client->blocks()->get('dummy');
});
});
it('calls correct url for first', function () {
$this->assertResponse('GET', 'blocks/first', function (ArkClient $client) {
return $client->blocks()->first();
});
});
it('calls correct url for last', function () {
$this->assertResponse('GET', 'blocks/last', function (ArkClient $client) {
return $client->blocks()->last();
});
});
it('calls correct url for transactions', function () {
$this->assertResponse('GET', 'blocks/dummy/transactions', function (ArkClient $client) {
return $client->blocks()->transactions('dummy');
});
});