Code Duplication    Length = 15-15 lines in 2 locations

codeception/acceptance/EF03OrderCest.php 2 locations

@@ 495-509 (lines=15) @@
492
493
        // メール確認
494
        $I->seeEmailCount(2);
495
        foreach (array($customer->getEmail(), $BaseInfo->getEmail01()) as $email) {
496
            $I->seeInLastEmailSubjectTo($email, 'ご注文ありがとうございます');
497
            $I->seeInLastEmailTo($email, $customer->getName01().' '.$customer->getName02().' 様');
498
            $I->seeInLastEmailTo($email, 'お名前 :'.$customer->getName01().' '.$customer->getName02().' 様');
499
            $I->seeInLastEmailTo($email, 'お名前(フリガナ):'.$customer->getKana01().' '.$customer->getKana02().' 様');
500
            $I->seeInLastEmailTo($email, '郵便番号:〒'.$customer->getZip01().'-'.$customer->getZip02());
501
            $I->seeInLastEmailTo($email, '住所  :'.$customer->getPref()->getName().$customer->getAddr01().$customer->getAddr02());
502
            $I->seeInLastEmailTo($email, '電話番号:'.$customer->getTel01().'-'.$customer->getTel02().'-'.$customer->getTel03());
503
            $I->seeInLastEmailTo($email, 'メールアドレス:'.$customer->getEmail());
504
            $I->seeInLastEmailTo($email, '◎お届け先1');
505
            $I->seeInLastEmailTo($email, 'お名前 :'.$nameSei);
506
            $I->seeInLastEmailTo($email, '数量:3');
507
            $I->seeInLastEmailTo($email, '◎お届け先2');
508
            $I->seeInLastEmailTo($email, '数量:2');
509
        }
510
511
        // 完了画面 -> topへ
512
        ShoppingCompletePage::at($I)->TOPへ();
@@ 712-726 (lines=15) @@
709
710
        // メール確認
711
        $I->seeEmailCount(2);
712
        foreach (array($customer->getEmail(), $BaseInfo->getEmail01()) as $email) {
713
            $I->seeInLastEmailSubjectTo($email, 'ご注文ありがとうございます');
714
            $I->seeInLastEmailTo($email, $customer->getName01().' '.$customer->getName02().' 様');
715
            $I->seeInLastEmailTo($email, 'お名前 :'.$customer->getName01().' '.$customer->getName02().' 様');
716
            $I->seeInLastEmailTo($email, 'お名前(フリガナ):'.$customer->getKana01().' '.$customer->getKana02().' 様');
717
            $I->seeInLastEmailTo($email, '郵便番号:〒'.$customer->getZip01().'-'.$customer->getZip02());
718
            $I->seeInLastEmailTo($email, '住所  :'.$customer->getPref()->getName().$customer->getAddr01().$customer->getAddr02());
719
            $I->seeInLastEmailTo($email, '電話番号:'.$customer->getTel01().'-'.$customer->getTel02().'-'.$customer->getTel03());
720
            $I->seeInLastEmailTo($email, 'メールアドレス:'.$customer->getEmail());
721
            $I->seeInLastEmailTo($email, '◎お届け先1');
722
            $I->seeInLastEmailTo($email, 'お名前 :'.$nameSei);
723
            $I->seeInLastEmailTo($email, '数量:3');
724
            $I->seeInLastEmailTo($email, '◎お届け先2');
725
            $I->seeInLastEmailTo($email, '数量:2');
726
        }
727
728
        // 完了画面 -> topへ
729
        ShoppingCompletePage::at($I)->TOPへ();