Code Duplication    Length = 15-15 lines in 2 locations

codeception/acceptance/EF03OrderCest.php 2 locations

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