OrderServerCest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
eloc 26
c 2
b 0
f 0
dl 0
loc 32
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A ensureIndexPageWorks() 0 27 1
1
<?php
2
/**
3
 * Server module for HiPanel
4
 *
5
 * @link      https://github.com/hiqdev/hipanel-module-server
6
 * @package   hipanel-module-server
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2015-2019, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hipanel\modules\server\tests\acceptance\seller;
12
13
use hipanel\helpers\Url;
14
use hipanel\tests\_support\Step\Acceptance\Seller;
15
16
class OrderServerCest
17
{
18
    /**
19
     * @skip
20
     */
21
    public function ensureIndexPageWorks(Seller $I)
22
    {
23
        $I->login();
24
        $I->needPage(Url::to('/server/order/index'));
25
        $I->see('Order server', 'h1');
26
        $I->see('OpenVZ', 'h3');
27
        $I->see('XEN SSD', 'h3');
28
        $I->seeLink('ORDER SERVER', Url::to('/server/order/open-vz'));
29
        $I->seeLink('ORDER SERVER', Url::to('/server/order/xen-ssd'));
30
        $I->see(<<<MSG
31
VDS based on OpenVZ - is an inexpensive and reliable solution for small projects 
32
that do not require many resources 
33
(HTML web-sites, landing pages, small blogs, personal websites, business cards, etc.). 
34
An additional advantage of our VDS based on OpenVZ is utilization 
35
of SSD cache system that improves performance of the disk subsystem 
36
during frequently accessed data readings.
37
MSG
38
, 'p');
39
        $I->see(<<<MSG
40
The main advantage of a VDS based on XEN with SSD is speed. 
41
It is more than 250 times faster than a conventional HDD. 
42
Due to Xen virtualization type, all resources are assigned to user 
43
and the operation of your VDS does not depend on the main server's load. 
44
Virtual dedicated server based on Xen is a perfect solution for most medium and large projects 
45
because of its performance that is highly competitive with the performance of a dedicated server.
46
MSG
47
, 'p');
48
    }
49
}
50