1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
* This file is part of EC-CUBE |
5
|
|
|
* |
6
|
|
|
* Copyright(c) 2000-2017 LOCKON CO.,LTD. All Rights Reserved. |
7
|
|
|
* |
8
|
|
|
* http://www.lockon.co.jp/ |
9
|
|
|
* |
10
|
|
|
* This program is free software; you can redistribute it and/or |
11
|
|
|
* modify it under the terms of the GNU General Public License |
12
|
|
|
* as published by the Free Software Foundation; either version 2 |
13
|
|
|
* of the License, or (at your option) any later version. |
14
|
|
|
* |
15
|
|
|
* This program is distributed in the hope that it will be useful, |
16
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
17
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
18
|
|
|
* GNU General Public License for more details. |
19
|
|
|
* |
20
|
|
|
* You should have received a copy of the GNU General Public License |
21
|
|
|
* along with this program; if not, write to the Free Software |
22
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
23
|
|
|
*/ |
24
|
|
|
|
25
|
|
|
namespace Page\Front; |
26
|
|
|
|
27
|
|
|
|
28
|
|
|
class CustomerAddressAddPage extends AbstractFrontPage |
|
|
|
|
29
|
|
|
{ |
30
|
|
|
public function __construct(\AcceptanceTester $I) |
31
|
|
|
{ |
32
|
|
|
parent::__construct($I); |
33
|
|
|
} |
34
|
|
|
|
35
|
|
|
public static function at($I) |
36
|
|
|
{ |
37
|
|
|
$page = new self($I); |
38
|
|
|
$page->tester->see('お届け先の追加', 'div.ec-layoutRole__main h1'); |
39
|
|
|
return $page; |
|
|
|
|
40
|
|
|
} |
41
|
|
|
|
42
|
|
|
public function 入力_姓($value) |
|
|
|
|
43
|
|
|
{ |
44
|
|
|
$this->tester->fillField(['id' => 'shopping_shipping_name_name01'], $value); |
45
|
|
|
return $this; |
|
|
|
|
46
|
|
|
} |
47
|
|
|
|
48
|
|
|
public function 入力_名($value) |
|
|
|
|
49
|
|
|
{ |
50
|
|
|
$this->tester->fillField(['id' => 'shopping_shipping_name_name02'], $value); |
51
|
|
|
return $this; |
|
|
|
|
52
|
|
|
} |
53
|
|
|
|
54
|
|
|
public function 入力_セイ($value) |
|
|
|
|
55
|
|
|
{ |
56
|
|
|
$this->tester->fillField(['id' => 'shopping_shipping_kana_kana01'], $value); |
57
|
|
|
return $this; |
|
|
|
|
58
|
|
|
} |
59
|
|
|
|
60
|
|
|
public function 入力_メイ($value) |
|
|
|
|
61
|
|
|
{ |
62
|
|
|
$this->tester->fillField(['id' => 'shopping_shipping_kana_kana02'], $value); |
63
|
|
|
return $this; |
|
|
|
|
64
|
|
|
} |
65
|
|
|
|
66
|
|
|
public function 入力_郵便番号($value) |
|
|
|
|
67
|
|
|
{ |
68
|
|
|
$this->tester->fillField(['id' => 'shopping_shipping_postal_code'], $value); |
69
|
|
|
|
70
|
|
|
return $this; |
71
|
|
|
} |
72
|
|
|
|
73
|
|
|
public function 入力_都道府県($value) |
|
|
|
|
74
|
|
|
{ |
75
|
|
|
$this->tester->selectOption(['id' => 'shopping_shipping_address_pref'], $value); |
76
|
|
|
return $this; |
|
|
|
|
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
public function 入力_市区町村名($value) |
|
|
|
|
80
|
|
|
{ |
81
|
|
|
$this->tester->fillField(['id' => 'shopping_shipping_address_addr01'], $value); |
82
|
|
|
return $this; |
|
|
|
|
83
|
|
|
} |
84
|
|
|
|
85
|
|
|
public function 入力_番地_ビル名($value) |
|
|
|
|
86
|
|
|
{ |
87
|
|
|
$this->tester->fillField(['id' => 'shopping_shipping_address_addr02'], $value); |
88
|
|
|
return $this; |
|
|
|
|
89
|
|
|
} |
90
|
|
|
|
91
|
|
|
public function 入力_電話番号($value) |
|
|
|
|
92
|
|
|
{ |
93
|
|
|
$this->tester->fillField(['id' => 'shopping_shipping_phone_number'], $value); |
94
|
|
|
|
95
|
|
|
return $this; |
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
public function 登録する() |
|
|
|
|
99
|
|
|
{ |
100
|
|
|
$this->tester->click('#detail_box__insert_button > button'); |
101
|
|
|
} |
102
|
|
|
} |
103
|
|
|
|