Code Duplication    Length = 15-15 lines in 2 locations

codeception/acceptance/EF03OrderCest.php 2 locations

@@ 505-519 (lines=15) @@
502
503
        // メール確認
504
        $I->seeEmailCount(2);
505
        foreach ([$customer->getEmail(), $BaseInfo->getEmail01()] as $email) {
506
            $I->seeInLastEmailSubjectTo($email, 'ご注文ありがとうございます');
507
            $I->seeInLastEmailTo($email, $customer->getName01().' '.$customer->getName02().' 様');
508
            $I->seeInLastEmailTo($email, 'お名前 :'.$customer->getName01().' '.$customer->getName02().' 様');
509
            $I->seeInLastEmailTo($email, 'お名前(フリガナ):'.$customer->getKana01().' '.$customer->getKana02().' 様');
510
            $I->seeInLastEmailTo($email, '郵便番号:〒'.$customer->getPostalCode());
511
            $I->seeInLastEmailTo($email, '住所  :'.$customer->getPref()->getName().$customer->getAddr01().$customer->getAddr02());
512
            $I->seeInLastEmailTo($email, '電話番号:'.$customer->getPhoneNumber());
513
            $I->seeInLastEmailTo($email, 'メールアドレス:'.$customer->getEmail());
514
            $I->seeInLastEmailTo($email, '◎お届け先1');
515
            $I->seeInLastEmailTo($email, 'お名前 :'.$nameSei);
516
            $I->seeInLastEmailTo($email, '数量:3');
517
            $I->seeInLastEmailTo($email, '◎お届け先2');
518
            $I->seeInLastEmailTo($email, '数量:2');
519
        }
520
521
        // 完了画面 -> topへ
522
        ShoppingCompletePage::at($I)->TOPへ();
@@ 719-733 (lines=15) @@
716
717
        // メール確認
718
        $I->seeEmailCount(2);
719
        foreach ([$customer->getEmail(), $BaseInfo->getEmail01()] as $email) {
720
            $I->seeInLastEmailSubjectTo($email, 'ご注文ありがとうございます');
721
            $I->seeInLastEmailTo($email, $customer->getName01().' '.$customer->getName02().' 様');
722
            $I->seeInLastEmailTo($email, 'お名前 :'.$customer->getName01().' '.$customer->getName02().' 様');
723
            $I->seeInLastEmailTo($email, 'お名前(フリガナ):'.$customer->getKana01().' '.$customer->getKana02().' 様');
724
            $I->seeInLastEmailTo($email, '郵便番号:〒'.$customer->getPostalCode());
725
            $I->seeInLastEmailTo($email, '住所  :'.$customer->getPref()->getName().$customer->getAddr01().$customer->getAddr02());
726
            $I->seeInLastEmailTo($email, '電話番号:'.$customer->getPhoneNumber());
727
            $I->seeInLastEmailTo($email, 'メールアドレス:'.$customer->getEmail());
728
            $I->seeInLastEmailTo($email, '◎お届け先1');
729
            $I->seeInLastEmailTo($email, 'お名前 :'.$nameSei);
730
            $I->seeInLastEmailTo($email, '数量:3');
731
            $I->seeInLastEmailTo($email, '◎お届け先2');
732
            $I->seeInLastEmailTo($email, '数量:2');
733
        }
734
735
        // 完了画面 -> topへ
736
        ShoppingCompletePage::at($I)->TOPへ();