Code Duplication    Length = 15-15 lines in 2 locations

codeception/acceptance/EF03OrderCest.php 2 locations

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