-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathValidatorsTest.php
More file actions
45 lines (38 loc) · 1.08 KB
/
ValidatorsTest.php
File metadata and controls
45 lines (38 loc) · 1.08 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
44
45
<?php
declare(strict_types=1);
namespace ArkEcosystem\Tests\Client\API;
use ArkEcosystem\Tests\Client\TestCase;
/**
* @covers \ArkEcosystem\Client\API\Validators
*/
class ValidatorsTest extends TestCase
{
/** @test */
public function all_calls_correct_url()
{
$this->assertResponse('GET', 'validators', function ($client) {
return $client->validators()->all();
});
}
/** @test */
public function get_calls_correct_url()
{
$this->assertResponse('GET', 'validators/dummy', function ($client) {
return $client->validators()->get('dummy');
});
}
/** @test */
public function blocks_calls_correct_url()
{
$this->assertResponse('GET', 'validators/dummy/blocks', function ($client) {
return $client->validators()->blocks('dummy');
});
}
/** @test */
public function voters_calls_correct_url()
{
$this->assertResponse('GET', 'validators/dummy/voters', function ($client) {
return $client->validators()->voters('dummy');
});
}
}