1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
|
4
|
|
|
namespace Page\Admin; |
5
|
|
|
|
6
|
|
|
|
7
|
|
|
class TradelawSettingPage extends AbstractAdminPage |
|
|
|
|
8
|
|
|
{ |
9
|
|
|
public static $登録完了メッセージ = '#main .container-fluid div:nth-child(1) .alert-success'; |
|
|
|
|
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', 'ショップ設定特定商取引法'); |
|
|
|
|
20
|
|
|
} |
21
|
|
|
|
22
|
|
|
public function 入力_販売業者($value) |
|
|
|
|
23
|
|
|
{ |
24
|
|
|
$this->tester->fillField(['id' => 'tradelaw_company'], $value); |
25
|
|
|
return $this; |
|
|
|
|
26
|
|
|
} |
27
|
|
|
|
28
|
|
|
public function 入力_運営責任者($value) |
|
|
|
|
29
|
|
|
{ |
30
|
|
|
$this->tester->fillField(['id' => 'tradelaw_manager'], $value); |
31
|
|
|
return $this; |
|
|
|
|
32
|
|
|
} |
33
|
|
|
|
34
|
|
|
public function 入力_郵便番号($value) |
|
|
|
|
35
|
|
|
{ |
36
|
|
|
$this->tester->fillField(['id' => 'tradelaw_postal_code'], $value); |
37
|
|
|
|
38
|
|
|
return $this; |
39
|
|
|
} |
40
|
|
|
|
41
|
|
|
public function 入力_都道府県($value) |
|
|
|
|
42
|
|
|
{ |
43
|
|
|
$this->tester->selectOption(['id' => 'tradelaw_address_pref'], $value); |
44
|
|
|
return $this; |
|
|
|
|
45
|
|
|
} |
46
|
|
|
|
47
|
|
|
public function 入力_市区町村名($value) |
|
|
|
|
48
|
|
|
{ |
49
|
|
|
$this->tester->fillField(['id' => 'tradelaw_address_addr01'], $value); |
50
|
|
|
return $this; |
|
|
|
|
51
|
|
|
} |
52
|
|
|
|
53
|
|
|
public function 入力_番地_ビル名($value) |
|
|
|
|
54
|
|
|
{ |
55
|
|
|
$this->tester->fillField(['id' => 'tradelaw_address_addr02'], $value); |
56
|
|
|
return $this; |
|
|
|
|
57
|
|
|
} |
58
|
|
|
|
59
|
|
|
public function 入力_電話番号($value) |
|
|
|
|
60
|
|
|
{ |
61
|
|
|
$this->tester->fillField(['id' => 'tradelaw_phone_number'], $value); |
62
|
|
|
|
63
|
|
|
return $this; |
64
|
|
|
} |
65
|
|
|
|
66
|
|
|
public function 入力_Eメール($value) |
|
|
|
|
67
|
|
|
{ |
68
|
|
|
$this->tester->fillField(['id' => 'tradelaw_email'], $value); |
69
|
|
|
return $this; |
|
|
|
|
70
|
|
|
} |
71
|
|
|
|
72
|
|
|
public function 入力_URL($value) |
|
|
|
|
73
|
|
|
{ |
74
|
|
|
$this->tester->fillField(['id' => 'tradelaw_url'], $value); |
75
|
|
|
return $this; |
|
|
|
|
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
public function 入力_商品代金以外の必要料金($value) |
|
|
|
|
79
|
|
|
{ |
80
|
|
|
$this->tester->fillField(['id' => 'tradelaw_term01'], $value); |
81
|
|
|
return $this; |
|
|
|
|
82
|
|
|
} |
83
|
|
|
|
84
|
|
|
public function 入力_注文方法($value) |
|
|
|
|
85
|
|
|
{ |
86
|
|
|
$this->tester->fillField(['id' => 'tradelaw_term02'], $value); |
87
|
|
|
return $this; |
|
|
|
|
88
|
|
|
} |
89
|
|
|
|
90
|
|
|
public function 入力_支払方法($value) |
|
|
|
|
91
|
|
|
{ |
92
|
|
|
$this->tester->fillField(['id' => 'tradelaw_term03'], $value); |
93
|
|
|
return $this; |
|
|
|
|
94
|
|
|
} |
95
|
|
|
|
96
|
|
|
public function 入力_支払期限($value) |
|
|
|
|
97
|
|
|
{ |
98
|
|
|
$this->tester->fillField(['id' => 'tradelaw_term04'], $value); |
99
|
|
|
return $this; |
|
|
|
|
100
|
|
|
} |
101
|
|
|
|
102
|
|
|
public function 入力_引き渡し時期($value) |
|
|
|
|
103
|
|
|
{ |
104
|
|
|
$this->tester->fillField(['id' => 'tradelaw_term05'], $value); |
105
|
|
|
return $this; |
|
|
|
|
106
|
|
|
} |
107
|
|
|
|
108
|
|
|
public function 入力_返品交換について($value) |
|
|
|
|
109
|
|
|
{ |
110
|
|
|
$this->tester->fillField(['id' => 'tradelaw_term06'], $value); |
111
|
|
|
return $this; |
|
|
|
|
112
|
|
|
} |
113
|
|
|
|
114
|
|
|
public function 登録() |
|
|
|
|
115
|
|
|
{ |
116
|
|
|
$this->tester->click('#tradelaw_form #aside_column button'); |
117
|
|
|
} |
118
|
|
|
} |