forked from DigitalOceanPHP/Client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDigitalOceanV2Spec.php
63 lines (50 loc) · 1.59 KB
/
DigitalOceanV2Spec.php
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
namespace spec\DigitalOceanV2;
use DigitalOceanV2\Adapter\AdapterInterface;
class DigitalOceanV2Spec extends \PhpSpec\ObjectBehavior
{
function let(AdapterInterface $adapter)
{
$this->beConstructedWith($adapter);
}
function it_is_initializable()
{
$this->shouldHaveType('DigitalOceanV2\DigitalOceanV2');
}
function it_should_return_an_action_instance()
{
$this->action()->shouldBeAnInstanceOf('DigitalOceanV2\Api\Action');
}
function it_should_return_an_image_instance()
{
$this->image()->shouldBeAnInstanceOf('DigitalOceanV2\Api\Image');
}
function it_should_return_a_domain_records_instance()
{
$this->domainRecord()->shouldBeAnInstanceOf('DigitalOceanV2\Api\DomainRecord');
}
function it_should_return_a_domain_instance()
{
$this->domain()->shouldBeAnInstanceOf('DigitalOceanV2\Api\Domain');
}
function it_should_return_a_size_instance()
{
$this->size()->shouldBeAnInstanceOf('DigitalOceanV2\Api\Size');
}
function it_should_return_a_region_instance()
{
$this->region()->shouldBeAnInstanceOf('DigitalOceanV2\Api\Region');
}
function it_should_return_a_key_instance()
{
$this->key()->shouldBeAnInstanceOf('DigitalOceanV2\Api\Key');
}
function it_should_return_a_droplet_instance()
{
$this->droplet()->shouldBeAnInstanceOf('DigitalOceanV2\Api\Droplet');
}
function it_should_return_a_rate_limit_instance()
{
$this->rateLimit()->shouldBeAnInstanceOf('DigitalOceanV2\Api\RateLimit');
}
}