Code Duplication    Length = 32-32 lines in 2 locations

codeception/acceptance/EA09ShippingCest.php 2 locations

@@ 156-187 (lines=32) @@
153
        $ShippingListPage->一覧_削除キャンセル();
154
    }
155
156
    public function shipping一括発送済み更新(\AcceptanceTester $I)
157
    {
158
        $I->wantTo('EA0902-UC01-T01 一括発送済み更新');
159
160
        // 一括操作用の受注を生成しておく
161
        $createCustomer = Fixtures::get('createCustomer');
162
        $createOrders = Fixtures::get('createOrders');
163
        $createOrders($createCustomer(), 10, array());
164
165
        $I->resetEmails();
166
167
        $config = Fixtures::get('config');
168
        // ステータスを出荷準備中にリセット
169
        $resetShippingStatusPrepared = Fixtures::get('resetShippingStatusPrepared'); // Closure
170
        $resetShippingStatusPrepared();
171
172
        $TargetShippings = Fixtures::get('findShippings'); // Closure
173
        $Shippings = $TargetShippings();
174
        $ShippingListPage = ShippingManagePage::go($I);
175
        $I->see('検索結果 : '.count($Shippings).' 件が該当しました', ShippingManagePage::$検索結果_メッセージ);
176
177
        $ShippingListPage
178
            ->一覧_全選択()
179
            ->一括発送済み更新();
180
181
        $I->wait(5);
182
        $I->waitForElementVisible(['xpath' => '//*[@id="sentUpdateModal"]/div/div/div[2]/p']);
183
        $I->see('処理完了。10件のメールを送信しました', ['xpath' => '//*[@id="sentUpdateModal"]/div/div/div[2]/p']);
184
        $I->seeEmailCount(20);
185
186
        $I->click(['id' => 'bulkChangeComplete']);
187
    }
188
189
    public function shipping一括発送済みメール送信(\AcceptanceTester $I)
190
    {
@@ 189-220 (lines=32) @@
186
        $I->click(['id' => 'bulkChangeComplete']);
187
    }
188
189
    public function shipping一括発送済みメール送信(\AcceptanceTester $I)
190
    {
191
        $I->wantTo('EA0902-UC02-T01 一括発送済みメール送信');
192
193
        // 一括操作用の受注を生成しておく
194
        $createCustomer = Fixtures::get('createCustomer');
195
        $createOrders = Fixtures::get('createOrders');
196
        $createOrders($createCustomer(), 10, array());
197
198
        $I->resetEmails();
199
200
        $config = Fixtures::get('config');
201
        // ステータスを出荷済みにリセット
202
        $resetShippingStatusShipped = Fixtures::get('resetShippingStatusShipped'); // Closure
203
        $resetShippingStatusShipped();
204
205
        $TargetShippings = Fixtures::get('findShippings'); // Closure
206
        $Shippings = $TargetShippings();
207
        $ShippingListPage = ShippingManagePage::go($I);
208
        $I->see('検索結果 : '.count($Shippings).' 件が該当しました', ShippingManagePage::$検索結果_メッセージ);
209
210
        $ShippingListPage
211
            ->一覧_全選択()
212
            ->一括発送済みメール送信();
213
214
        $I->wait(5);
215
        $I->waitForElementVisible(['xpath' => '//*[@id="sentUpdateModal"]/div/div/div[2]/p']);
216
        $I->see('処理完了。10件のメールを送信しました', ['xpath' => '//*[@id="sentUpdateModal"]/div/div/div[2]/p']);
217
        $I->seeEmailCount(20);
218
219
        $I->click(['id' => 'bulkChangeComplete']);
220
    }
221
222
    public function shipping出荷登録(\AcceptanceTester $I)
223
    {