Code Duplication    Length = 15-15 lines in 2 locations

codeception/acceptance/EF03OrderCest.php 2 locations

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