Completed
Push — 4.0 ( d47428...a1c143 )
by Kiyotaka
06:47 queued 10s
created

AbstractPage   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 27
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A goPage() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of EC-CUBE
5
 *
6
 * Copyright(c) LOCKON CO.,LTD. All Rights Reserved.
7
 *
8
 * http://www.lockon.co.jp/
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Page;
15
16
abstract class AbstractPage
17
{
18
    /** @var \AcceptanceTester $tester */
19
    protected $tester;
20
21
    /**
22
     * AbstractAdminPage constructor.
23
     */
24
    public function __construct(\AcceptanceTester $I)
25
    {
26
        $this->tester = $I;
27
    }
28
29
    /**
30
     * ページに移動。
31
     *
32
     * @param $url string URL
33
     *
34
     * @return $this
35
     */
36
    protected function goPage($url, $pageTitle = '')
37
    {
38
        $this->tester->amOnPage('/'.$url);
39
40
        return $this;
41
    }
42
}
43