Failed Conditions
Pull Request — experimental/sf (#3241)
by k-yamamura
43:19 queued 23:09
created

CustomerEditPage   A

Complexity

Total Complexity 16

Size/Duplication

Total Lines 106
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 106
rs 10
c 0
b 0
f 0
wmc 16
lcom 1
cbo 1

16 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 5 1
A 入力_セイ() 0 5 1
A 入力_メイ() 0 5 1
A 入力_郵便番号() 0 6 1
A 入力_都道府県() 0 5 1
A 入力_市区町村名() 0 5 1
A 入力_番地_ビル名() 0 5 1
A 入力_Eメール() 0 5 1
A 入力_電話番号() 0 6 1
A 入力_パスワード() 0 5 1
A 入力_パスワード確認() 0 5 1
A 登録() 0 5 1
1
<?php
2
3
4
namespace Page\Admin;
5
6
7
class CustomerEditPage extends AbstractAdminPageStyleGuide
0 ignored issues
show
introduced by
Missing class doc comment
Loading history...
8
{
9
10
    public static $登録完了メッセージ = '#page_admin_customer_edit > div > div.c-contentsArea > div.alert.alert-success.alert-dismissible.fade.show.m-3 > span';
0 ignored issues
show
Coding Style introduced by
Member variable "登録完了メッセージ" is not in valid camel caps format
Loading history...
11
12
    /**
0 ignored issues
show
introduced by
Doc comment for parameter "$I" missing
Loading history...
13
     * CustomerRegisterPage constructor.
14
     */
15
    public function __construct(\AcceptanceTester $I)
16
    {
17
        parent::__construct($I);
18
    }
19
20
    public static function go($I)
21
    {
22
        $page = new self($I);
23
        return $page->goPage('/customer/new', '会員登録・編集会員管理');
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
24
    }
25
26
    public static function at($I)
27
    {
28
        $page = new self($I);
29
        return $page->atPage('会員登録・編集会員管理');
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
30
    }
31
32
    public function 入力_姓($value)
0 ignored issues
show
Coding Style introduced by
Method name "CustomerEditPage::入力_姓" is not in camel caps format
Loading history...
33
    {
34
        $this->tester->fillField(['id' => 'admin_customer_name_name01'], $value);
35
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
36
    }
37
38
    public function 入力_名($value)
0 ignored issues
show
Coding Style introduced by
Method name "CustomerEditPage::入力_名" is not in camel caps format
Loading history...
39
    {
40
        $this->tester->fillField(['id' => 'admin_customer_name_name02'], $value);
41
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
42
    }
43
44
    public function 入力_セイ($value)
0 ignored issues
show
Coding Style introduced by
Method name "CustomerEditPage::入力_セイ" is not in camel caps format
Loading history...
45
    {
46
        $this->tester->fillField(['id' => 'admin_customer_kana_kana01'], $value);
47
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
48
    }
49
50
    public function 入力_メイ($value)
0 ignored issues
show
Coding Style introduced by
Method name "CustomerEditPage::入力_メイ" is not in camel caps format
Loading history...
51
    {
52
        $this->tester->fillField(['id' => 'admin_customer_kana_kana02'], $value);
53
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
54
    }
55
56
    public function 入力_郵便番号($value)
0 ignored issues
show
Coding Style introduced by
Method name "CustomerEditPage::入力_郵便番号" is not in camel caps format
Loading history...
57
    {
58
        $this->tester->fillField(['id' => 'admin_customer_postal_code'], $value);
59
60
        return $this;
61
    }
62
63
    public function 入力_都道府県($value)
0 ignored issues
show
Coding Style introduced by
Method name "CustomerEditPage::入力_都道府県" is not in camel caps format
Loading history...
64
    {
65
        $this->tester->selectOption(['id' => 'admin_customer_address_pref'], $value);
66
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
67
    }
68
69
    public function 入力_市区町村名($value)
0 ignored issues
show
Coding Style introduced by
Method name "CustomerEditPage::入力_市区町村名" is not in camel caps format
Loading history...
70
    {
71
        $this->tester->fillField(['id' => 'admin_customer_address_addr01'], $value);
72
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
73
    }
74
75
    public function 入力_番地_ビル名($value)
0 ignored issues
show
Coding Style introduced by
Method name "CustomerEditPage::入力_番地_ビル名" is not in camel caps format
Loading history...
76
    {
77
        $this->tester->fillField(['id' => 'admin_customer_address_addr02'], $value);
78
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
79
    }
80
81
    public function 入力_Eメール($value)
0 ignored issues
show
Coding Style introduced by
Method name "CustomerEditPage::入力_Eメール" is not in camel caps format
Loading history...
82
    {
83
        $this->tester->fillField(['id' => 'admin_customer_email'], $value);
84
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
85
    }
86
87
    public function 入力_電話番号($value)
0 ignored issues
show
Coding Style introduced by
Method name "CustomerEditPage::入力_電話番号" is not in camel caps format
Loading history...
88
    {
89
        $this->tester->fillField(['id' => 'admin_customer_phone_number'], $value);
90
91
        return $this;
92
    }
93
94
    public function 入力_パスワード($value)
0 ignored issues
show
Coding Style introduced by
Method name "CustomerEditPage::入力_パスワード" is not in camel caps format
Loading history...
95
    {
96
        $this->tester->fillField(['id' => 'admin_customer_password_first'], $value);
97
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
98
    }
99
100
    public function 入力_パスワード確認($value)
0 ignored issues
show
Coding Style introduced by
Method name "CustomerEditPage::入力_パスワード確認" is not in camel caps format
Loading history...
101
    {
102
        $this->tester->fillField(['id' => 'admin_customer_password_second'], $value);
103
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
104
    }
105
106
    public function 登録()
0 ignored issues
show
Coding Style introduced by
Method name "CustomerEditPage::登録" is not in camel caps format
Loading history...
107
    {
108
        $this->tester->click('#customer_form > div.c-conversionArea > div > div > div:nth-child(2) > div > div:nth-child(2) > button');
109
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
110
    }
111
112
}
113