Code Duplication    Length = 15-15 lines in 2 locations

codeception/acceptance/EF03OrderCest.php 2 locations

@@ 487-501 (lines=15) @@
484
485
        // メール確認
486
        $I->seeEmailCount(2);
487
        foreach ([$customer->getEmail(), $BaseInfo->getEmail01()] as $email) {
488
            $I->seeInLastEmailSubjectTo($email, 'ご注文ありがとうございます');
489
            $I->seeInLastEmailTo($email, $customer->getName01().' '.$customer->getName02().' 様');
490
            $I->seeInLastEmailTo($email, 'お名前 :'.$customer->getName01().' '.$customer->getName02().' 様');
491
            $I->seeInLastEmailTo($email, 'お名前(フリガナ):'.$customer->getKana01().' '.$customer->getKana02().' 様');
492
            $I->seeInLastEmailTo($email, '郵便番号:〒'.$customer->getPostalCode());
493
            $I->seeInLastEmailTo($email, '住所  :'.$customer->getPref()->getName().$customer->getAddr01().$customer->getAddr02());
494
            $I->seeInLastEmailTo($email, '電話番号:'.$customer->getPhoneNumber());
495
            $I->seeInLastEmailTo($email, 'メールアドレス:'.$customer->getEmail());
496
            $I->seeInLastEmailTo($email, '◎お届け先1');
497
            $I->seeInLastEmailTo($email, 'お名前 :'.$nameSei);
498
            $I->seeInLastEmailTo($email, '数量:3');
499
            $I->seeInLastEmailTo($email, '◎お届け先2');
500
            $I->seeInLastEmailTo($email, '数量:2');
501
        }
502
503
        // 完了画面 -> topへ
504
        ShoppingCompletePage::at($I)->TOPへ();
@@ 699-713 (lines=15) @@
696
697
        // メール確認
698
        $I->seeEmailCount(2);
699
        foreach ([$customer->getEmail(), $BaseInfo->getEmail01()] as $email) {
700
            $I->seeInLastEmailSubjectTo($email, 'ご注文ありがとうございます');
701
            $I->seeInLastEmailTo($email, $customer->getName01().' '.$customer->getName02().' 様');
702
            $I->seeInLastEmailTo($email, 'お名前 :'.$customer->getName01().' '.$customer->getName02().' 様');
703
            $I->seeInLastEmailTo($email, 'お名前(フリガナ):'.$customer->getKana01().' '.$customer->getKana02().' 様');
704
            $I->seeInLastEmailTo($email, '郵便番号:〒'.$customer->getPostalCode());
705
            $I->seeInLastEmailTo($email, '住所  :'.$customer->getPref()->getName().$customer->getAddr01().$customer->getAddr02());
706
            $I->seeInLastEmailTo($email, '電話番号:'.$customer->getPhoneNumber());
707
            $I->seeInLastEmailTo($email, 'メールアドレス:'.$customer->getEmail());
708
            $I->seeInLastEmailTo($email, '◎お届け先1');
709
            $I->seeInLastEmailTo($email, 'お名前 :'.$nameSei);
710
            $I->seeInLastEmailTo($email, '数量:3');
711
            $I->seeInLastEmailTo($email, '◎お届け先2');
712
            $I->seeInLastEmailTo($email, '数量:2');
713
        }
714
715
        // 完了画面 -> topへ
716
        ShoppingCompletePage::at($I)->TOPへ();