Failed Conditions
Push — modify-scrutinizeryml ( 361e25...08b4c1 )
by Kentaro
63:54 queued 57:30
created

PaymentManagePage   A

Complexity

Total Complexity 9

Size/Duplication

Total Lines 62
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 62
rs 10
c 0
b 0
f 0
wmc 9
lcom 1
cbo 1

9 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A go() 0 5 1
A at() 0 5 1
A 一覧_支払方法() 0 5 1
A 一覧_下に() 0 6 1
A 一覧_編集() 0 6 1
A 一覧_削除() 0 7 1
A 新規入力() 0 4 1
A 一覧_上に() 0 6 1
1
<?php
2
3
4
namespace Page\Admin;
5
6
7
class PaymentManagePage extends AbstractAdminPageStyleGuide
8
{
9
10
    public static $登録完了メッセージ = '.c-container .c-contentsArea div.alert-success';
11
12
    public function __construct(\AcceptanceTester $I)
13
    {
14
        parent::__construct($I);
15
    }
16
17
    public static function go($I)
18
    {
19
        $page = new self($I);
20
        return $page->goPage('/setting/shop/payment', '支払方法設定基本情報設定');
21
    }
22
23
    public static function at($I)
24
    {
25
        $page = new self($I);
26
        return $page->atPage('支払方法設定基本情報設定');
27
    }
28
29
    public function 一覧_支払方法($rowNum)
30
    {
31
        $rowNum = $rowNum + 1;
32
        return ".c-contentsArea__primaryCol .c-primaryCol .card-body ul li:nth-child(${rowNum})";
33
    }
34
35
    public function 一覧_下に($rowNum)
36
    {
37
        $rowNum = $rowNum + 1;
38
        $this->tester->click(".c-contentsArea__primaryCol .list-group-flush .list-group-item:nth-child(${rowNum}) .justify-content-around a.action-down ");
39
        return $this;
40
    }
41
42
    public function 一覧_編集($rowNum)
43
    {
44
        $rowNum = $rowNum + 1;
45
        $this->tester->click(".c-contentsArea__primaryCol .list-group-flush .list-group-item:nth-child(${rowNum})> div > div:nth-child(2) a ");
46
47
    }
48
49
    public function 一覧_削除($rowNum)
50
    {
51
        $rowNum = $rowNum + 1;
52
        $this->tester->click(".c-contentsArea__primaryCol .list-group-flush .list-group-item:nth-child(${rowNum}) > div > div.col-3.text-right > div > div:nth-child(3) > a");
53
        // accept modal
54
        $this->tester->click(".c-contentsArea__primaryCol .list-group-flush .list-group-item:nth-child(${rowNum}) > div > div.col-3.text-right > div > div:nth-child(3) > div > div > div > div.modal-footer > a:nth-child(2)");
55
    }
56
57
    public function 新規入力()
58
    {
59
        $this->tester->click('.c-contentsArea__primaryCol  button.btn-ec-regular');
60
    }
61
62
    public function 一覧_上に($rowNum)
63
    {
64
        $rowNum = $rowNum + 1;
65
        $this->tester->click(".c-contentsArea__primaryCol .list-group-flush .list-group-item:nth-child(${rowNum}) .justify-content-around a.action-up ");
66
        return $this;
67
    }
68
}