Completed
Push — master ( 74888d...983d65 )
by Dmitry
16:06 queued 12:58
created

OrderServerCest::ensureIndexPageWorks()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 27
Code Lines 25

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 25
dl 0
loc 27
rs 9.52
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace hipanel\modules\server\tests\acceptance\client;
4
5
use hipanel\helpers\Url;
6
use hipanel\tests\_support\Step\Acceptance\Client;
7
8
class OrderServerCest
9
{
10
    public function ensureIndexPageWorks(Client $I)
11
    {
12
        $I->login();
13
        $I->needPage(Url::to('/server/order/index'));
14
        $I->see('Order server', 'h1');
15
        $I->see('OpenVZ', 'h3');
16
        $I->see('XEN SSD', 'h3');
17
        $I->seeLink('ORDER SERVER', Url::to('/server/order/open-vz'));
18
        $I->seeLink('ORDER SERVER', Url::to('/server/order/xen-ssd'));
19
        $I->see(<<<MSG
20
VDS based on OpenVZ - is an inexpensive and reliable solution for small projects 
21
that do not require many resources 
22
(HTML web-sites, landing pages, small blogs, personal websites, business cards, etc.). 
23
An additional advantage of our VDS based on OpenVZ is utilization 
24
of SSD cache system that improves performance of the disk subsystem 
25
during frequently accessed data readings.
26
MSG
27
, 'p');
28
        $I->see(<<<MSG
29
The main advantage of a VDS based on XEN with SSD is speed. 
30
It is more than 250 times faster than a conventional HDD. 
31
Due to Xen virtualization type, all resources are assigned to user 
32
and the operation of your VDS does not depend on the main server's load. 
33
Virtual dedicated server based on Xen is a perfect solution for most medium and large projects 
34
because of its performance that is highly competitive with the performance of a dedicated server.
35
MSG
36
, 'p');
37
    }
38
}
39