-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathRoundsTest.php
More file actions
37 lines (31 loc) · 849 Bytes
/
RoundsTest.php
File metadata and controls
37 lines (31 loc) · 849 Bytes
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\Tests\Client\TestCase;
/**
* @covers \ArkEcosystem\Client\API\Rounds
*/
class RoundsTest extends TestCase
{
/** @test */
public function all_calls_correct_url()
{
$this->assertResponse('GET', 'rounds', function ($client) {
return $client->rounds()->all();
});
}
/** @test */
public function view_calls_correct_url()
{
$this->assertResponse('GET', 'rounds/12345', function ($client) {
return $client->rounds()->get(12345);
});
}
/** @test */
public function validators_calls_correct_url()
{
$this->assertResponse('GET', 'rounds/12345/validators', function ($client) {
return $client->rounds()->validators(12345);
});
}
}