@@ -19,6 +19,9 @@ discard block |
||
19 | 19 | parent::__construct($I); |
20 | 20 | } |
21 | 21 | |
22 | + /** |
|
23 | + * @param \AcceptanceTester $I |
|
24 | + */ |
|
22 | 25 | public static function go($I) |
23 | 26 | { |
24 | 27 | $page = new self($I); |
@@ -26,6 +29,9 @@ discard block |
||
26 | 29 | return $page; |
27 | 30 | } |
28 | 31 | |
32 | + /** |
|
33 | + * @param \AcceptanceTester $I |
|
34 | + */ |
|
29 | 35 | public static function at($I) |
30 | 36 | { |
31 | 37 | $page = new self($I); |
@@ -46,36 +52,54 @@ discard block |
||
46 | 52 | return $this; |
47 | 53 | } |
48 | 54 | |
55 | + /** |
|
56 | + * @param string $value |
|
57 | + */ |
|
49 | 58 | public function 入力_姓($value) |
50 | 59 | { |
51 | 60 | $this->tester->fillField(['id' => 'shipping_name_name01'], $value); |
52 | 61 | return $this; |
53 | 62 | } |
54 | 63 | |
64 | + /** |
|
65 | + * @param string $value |
|
66 | + */ |
|
55 | 67 | public function 入力_名($value) |
56 | 68 | { |
57 | 69 | $this->tester->fillField(['id' => 'shipping_name_name02'], $value); |
58 | 70 | return $this; |
59 | 71 | } |
60 | 72 | |
73 | + /** |
|
74 | + * @param string $value |
|
75 | + */ |
|
61 | 76 | public function 入力_セイ($value) |
62 | 77 | { |
63 | 78 | $this->tester->fillField(['id' => 'shipping_kana_kana01'], $value); |
64 | 79 | return $this; |
65 | 80 | } |
66 | 81 | |
82 | + /** |
|
83 | + * @param string $value |
|
84 | + */ |
|
67 | 85 | public function 入力_メイ($value) |
68 | 86 | { |
69 | 87 | $this->tester->fillField(['id' => 'shipping_kana_kana02'], $value); |
70 | 88 | return $this; |
71 | 89 | } |
72 | 90 | |
91 | + /** |
|
92 | + * @param string $value |
|
93 | + */ |
|
73 | 94 | public function 入力_郵便番号1($value) |
74 | 95 | { |
75 | 96 | $this->tester->fillField(['id' => 'shipping_zip_zip01'], $value); |
76 | 97 | return $this; |
77 | 98 | } |
78 | 99 | |
100 | + /** |
|
101 | + * @param string $value |
|
102 | + */ |
|
79 | 103 | public function 入力_郵便番号2($value) |
80 | 104 | { |
81 | 105 | $this->tester->fillField(['id' => 'shipping_zip_zip02'], $value); |
@@ -88,48 +112,72 @@ discard block |
||
88 | 112 | return $this; |
89 | 113 | } |
90 | 114 | |
115 | + /** |
|
116 | + * @param string $value |
|
117 | + */ |
|
91 | 118 | public function 入力_市区町村名($value) |
92 | 119 | { |
93 | 120 | $this->tester->fillField(['id' => 'shipping_address_addr01'], $value); |
94 | 121 | return $this; |
95 | 122 | } |
96 | 123 | |
124 | + /** |
|
125 | + * @param string $value |
|
126 | + */ |
|
97 | 127 | public function 入力_番地_ビル名($value) |
98 | 128 | { |
99 | 129 | $this->tester->fillField(['id' => 'shipping_address_addr02'], $value); |
100 | 130 | return $this; |
101 | 131 | } |
102 | 132 | |
133 | + /** |
|
134 | + * @param string $value |
|
135 | + */ |
|
103 | 136 | public function 入力_電話番号1($value) |
104 | 137 | { |
105 | 138 | $this->tester->fillField(['id' => 'shipping_tel_tel01'], $value); |
106 | 139 | return $this; |
107 | 140 | } |
108 | 141 | |
142 | + /** |
|
143 | + * @param string $value |
|
144 | + */ |
|
109 | 145 | public function 入力_電話番号2($value) |
110 | 146 | { |
111 | 147 | $this->tester->fillField(['id' => 'shipping_tel_tel02'], $value); |
112 | 148 | return $this; |
113 | 149 | } |
114 | 150 | |
151 | + /** |
|
152 | + * @param string $value |
|
153 | + */ |
|
115 | 154 | public function 入力_電話番号3($value) |
116 | 155 | { |
117 | 156 | $this->tester->fillField(['id' => 'shipping_tel_tel03'], $value); |
118 | 157 | return $this; |
119 | 158 | } |
120 | 159 | |
160 | + /** |
|
161 | + * @param string $value |
|
162 | + */ |
|
121 | 163 | public function 入力_出荷伝票番号($value) |
122 | 164 | { |
123 | 165 | $this->tester->fillField(['id' => 'shipping_tracking_number'], $value); |
124 | 166 | return $this; |
125 | 167 | } |
126 | 168 | |
169 | + /** |
|
170 | + * @param string[] $value |
|
171 | + */ |
|
127 | 172 | public function 入力_配送業者($value) |
128 | 173 | { |
129 | 174 | $this->tester->selectOption(['id' => 'shipping_Delivery'], $value); |
130 | 175 | return $this; |
131 | 176 | } |
132 | 177 | |
178 | + /** |
|
179 | + * @param string $value |
|
180 | + */ |
|
133 | 181 | public function 入力_配達用メモ($value) |
134 | 182 | { |
135 | 183 | $this->tester->fillField(['id' => 'shipping_note'], $value); |
@@ -144,6 +192,9 @@ discard block |
||
144 | 192 | return $this; |
145 | 193 | } |
146 | 194 | |
195 | + /** |
|
196 | + * @param integer $rowNum |
|
197 | + */ |
|
147 | 198 | public function 商品検索結果_選択($rowNum) |
148 | 199 | { |
149 | 200 | $this->tester->click(['xpath' => "//*[@id='searchItemsResult']/table/tbody/tr[${rowNum}]/td[5]/i"]); |
@@ -58,6 +58,9 @@ discard block |
||
58 | 58 | return $this; |
59 | 59 | } |
60 | 60 | |
61 | + /** |
|
62 | + * @param integer $rowNum |
|
63 | + */ |
|
61 | 64 | public function 一覧_編集($rowNum) |
62 | 65 | { |
63 | 66 | $this->tester->click(['xpath' => "//*[@id='form_bulk']/div[2]/div/table/tbody/tr[${rowNum}]/td[2]/a"]); |
@@ -117,6 +120,9 @@ discard block |
||
117 | 120 | $this->tester->click('#form_bulk #btn_bulk_mail'); |
118 | 121 | } |
119 | 122 | |
123 | + /** |
|
124 | + * @param integer $rowNum |
|
125 | + */ |
|
120 | 126 | public function 一覧_チェックボックス($rowNum) |
121 | 127 | { |
122 | 128 | $this->tester->click(['xpath' => "//*[@id='form_bulk']/div[2]/div/table/tbody/tr[${rowNum}]/td[1]/input"]); |
@@ -27,6 +27,9 @@ |
||
27 | 27 | class ShoppingLoginPage extends AbstractFrontPage |
28 | 28 | { |
29 | 29 | |
30 | + /** |
|
31 | + * @param \AcceptanceTester $I |
|
32 | + */ |
|
30 | 33 | public static function at($I) |
31 | 34 | { |
32 | 35 | $page = new self($I); |
@@ -1,6 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -use Codeception\Util\Fixtures; |
|
4 | 3 | use Page\Admin\OwnersPluginPage; |
5 | 4 | |
6 | 5 | /** |
@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | use Codeception\Util\Fixtures; |
4 | -use Page\Admin\CustomerManagePage; |
|
5 | 4 | use Page\Admin\OrderManagePage; |
6 | 5 | use Page\Admin\TopPage; |
7 | 6 |
@@ -1,7 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -use Codeception\Util\Fixtures; |
|
4 | - |
|
5 | 3 | /** |
6 | 4 | * @group admin |
7 | 5 | * @group admin01 |
@@ -1,8 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -use Codeception\Util\Fixtures; |
|
4 | 3 | use Page\Admin\CsvSettingsPage; |
5 | -use Page\Admin\CustomerAgreementSettingPage; |
|
6 | 4 | use Page\Admin\DeliveryEditPage; |
7 | 5 | use Page\Admin\DeliveryManagePage; |
8 | 6 | use Page\Admin\MailSettingsPage; |
@@ -10,7 +8,6 @@ discard block |
||
10 | 8 | use Page\Admin\PaymentManagePage; |
11 | 9 | use Page\Admin\ShopSettingPage; |
12 | 10 | use Page\Admin\TaxManagePage; |
13 | -use Page\Admin\TradelawSettingPage; |
|
14 | 11 | |
15 | 12 | /** |
16 | 13 | * @group admin |
@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | use Codeception\Util\Fixtures; |
4 | -use Eccube\Entity\Master\CustomerStatus; |
|
5 | 4 | |
6 | 5 | /** |
7 | 6 | * @group front |
@@ -81,7 +81,7 @@ |
||
81 | 81 | $createCustomer = Fixtures::get('createCustomer'); |
82 | 82 | $customer = $createCustomer(); |
83 | 83 | $I->resetEmails(); |
84 | - $I->submitForm('#form1',[ |
|
84 | + $I->submitForm('#form1', [ |
|
85 | 85 | 'login_email' => $customer->getEmail() |
86 | 86 | ]); |
87 | 87 | $I->see('パスワード発行メールの送信 完了', 'div.ec-pageHeader h1'); |
@@ -153,6 +153,9 @@ discard block |
||
153 | 153 | $this->addWarning('admin.delete.warning', 'admin'); |
154 | 154 | } |
155 | 155 | |
156 | + /** |
|
157 | + * @param string $targetPath |
|
158 | + */ |
|
156 | 159 | public function setLoginTargetPath($targetPath, $namespace = null) |
157 | 160 | { |
158 | 161 | if (is_null($namespace)) { |
@@ -169,7 +172,7 @@ discard block |
||
169 | 172 | * @param array $path An array of path parameters |
170 | 173 | * @param array $query An array of query parameters |
171 | 174 | * |
172 | - * @return Response A Response instance |
|
175 | + * @return \Symfony\Component\HttpFoundation\Response A Response instance |
|
173 | 176 | */ |
174 | 177 | public function forwardToRoute($route, array $path = [], array $query = []) |
175 | 178 | { |