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

TradelawSettingPage::入力_支払方法()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
4
namespace Page\Admin;
5
6
7
class TradelawSettingPage extends AbstractAdminPage
0 ignored issues
show
introduced by
Missing class doc comment
Loading history...
8
{
9
    public static $登録完了メッセージ = '#main .container-fluid div:nth-child(1) .alert-success';
0 ignored issues
show
Coding Style introduced by
Member variable "登録完了メッセージ" is not in valid camel caps format
Loading history...
10
11
    public function __construct(\AcceptanceTester $I)
12
    {
13
        parent::__construct($I);
14
    }
15
16
    public static function go($I)
17
    {
18
        $page = new self($I);
19
        return $page->goPage('/setting/shop/tradelaw', 'ショップ設定特定商取引法');
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
20
    }
21
22
    public function 入力_販売業者($value)
0 ignored issues
show
Coding Style introduced by
Method name "TradelawSettingPage::入力_販売業者" is not in camel caps format
Loading history...
23
    {
24
        $this->tester->fillField(['id' => 'tradelaw_company'], $value);
25
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
26
    }
27
28
    public function 入力_運営責任者($value)
0 ignored issues
show
Coding Style introduced by
Method name "TradelawSettingPage::入力_運営責任者" is not in camel caps format
Loading history...
29
    {
30
        $this->tester->fillField(['id' => 'tradelaw_manager'], $value);
31
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
32
    }
33
34
    public function 入力_郵便番号($value)
0 ignored issues
show
Coding Style introduced by
Method name "TradelawSettingPage::入力_郵便番号" is not in camel caps format
Loading history...
35
    {
36
        $this->tester->fillField(['id' => 'tradelaw_postal_code'], $value);
37
38
        return $this;
39
    }
40
41
    public function 入力_都道府県($value)
0 ignored issues
show
Coding Style introduced by
Method name "TradelawSettingPage::入力_都道府県" is not in camel caps format
Loading history...
42
    {
43
        $this->tester->selectOption(['id' => 'tradelaw_address_pref'], $value);
44
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
45
    }
46
47
    public function 入力_市区町村名($value)
0 ignored issues
show
Coding Style introduced by
Method name "TradelawSettingPage::入力_市区町村名" is not in camel caps format
Loading history...
48
    {
49
        $this->tester->fillField(['id' => 'tradelaw_address_addr01'], $value);
50
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
51
    }
52
53
    public function 入力_番地_ビル名($value)
0 ignored issues
show
Coding Style introduced by
Method name "TradelawSettingPage::入力_番地_ビル名" is not in camel caps format
Loading history...
54
    {
55
        $this->tester->fillField(['id' => 'tradelaw_address_addr02'], $value);
56
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
57
    }
58
59
    public function 入力_電話番号($value)
0 ignored issues
show
Coding Style introduced by
Method name "TradelawSettingPage::入力_電話番号" is not in camel caps format
Loading history...
60
    {
61
        $this->tester->fillField(['id' => 'tradelaw_phone_number'], $value);
62
63
        return $this;
64
    }
65
66
    public function 入力_Eメール($value)
0 ignored issues
show
Coding Style introduced by
Method name "TradelawSettingPage::入力_Eメール" is not in camel caps format
Loading history...
67
    {
68
        $this->tester->fillField(['id' => 'tradelaw_email'], $value);
69
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
70
    }
71
72
    public function 入力_URL($value)
0 ignored issues
show
Coding Style introduced by
Method name "TradelawSettingPage::入力_URL" is not in camel caps format
Loading history...
73
    {
74
        $this->tester->fillField(['id' => 'tradelaw_url'], $value);
75
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
76
    }
77
78
    public function 入力_商品代金以外の必要料金($value)
0 ignored issues
show
Coding Style introduced by
Method name "TradelawSettingPage::入力_商品代金以外の必要料金" is not in camel caps format
Loading history...
79
    {
80
        $this->tester->fillField(['id' => 'tradelaw_term01'], $value);
81
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
82
    }
83
84
    public function 入力_注文方法($value)
0 ignored issues
show
Coding Style introduced by
Method name "TradelawSettingPage::入力_注文方法" is not in camel caps format
Loading history...
85
    {
86
        $this->tester->fillField(['id' => 'tradelaw_term02'], $value);
87
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
88
    }
89
90
    public function 入力_支払方法($value)
0 ignored issues
show
Coding Style introduced by
Method name "TradelawSettingPage::入力_支払方法" is not in camel caps format
Loading history...
91
    {
92
        $this->tester->fillField(['id' => 'tradelaw_term03'], $value);
93
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
94
    }
95
96
    public function 入力_支払期限($value)
0 ignored issues
show
Coding Style introduced by
Method name "TradelawSettingPage::入力_支払期限" is not in camel caps format
Loading history...
97
    {
98
        $this->tester->fillField(['id' => 'tradelaw_term04'], $value);
99
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
100
    }
101
102
    public function 入力_引き渡し時期($value)
0 ignored issues
show
Coding Style introduced by
Method name "TradelawSettingPage::入力_引き渡し時期" is not in camel caps format
Loading history...
103
    {
104
        $this->tester->fillField(['id' => 'tradelaw_term05'], $value);
105
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
106
    }
107
108
    public function 入力_返品交換について($value)
0 ignored issues
show
Coding Style introduced by
Method name "TradelawSettingPage::入力_返品交換について" is not in camel caps format
Loading history...
109
    {
110
        $this->tester->fillField(['id' => 'tradelaw_term06'], $value);
111
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
112
    }
113
114
    public function 登録()
0 ignored issues
show
Coding Style introduced by
Method name "TradelawSettingPage::登録" is not in camel caps format
Loading history...
115
    {
116
        $this->tester->click('#tradelaw_form #aside_column button');
117
    }
118
}