Code Duplication    Length = 8-9 lines in 3 locations

codeception/acceptance/EA09ShippingCest.php 1 location

@@ 313-320 (lines=8) @@
310
        }
311
    }
312
313
    public function shipping_出荷CSV雛形ファイルダウンロード(\AcceptanceTester $I)
314
    {
315
        $I->wantTo('EA0093-UC04-T02 出荷CSV雛形ファイルのダウンロード');
316
317
        ShippingCsvUploadPage::go($I)->雛形ダウンロード();
318
        $csv = $I->getLastDownloadFile('/^shipping\.csv$/');
319
        $I->assertEquals(mb_convert_encoding(file_get_contents($csv), 'UTF-8', 'Shift_JIS'), '出荷ID,お問い合わせ番号,出荷日'.PHP_EOL);
320
    }
321
}
322

codeception/acceptance/EA03ProductCest.php 2 locations

@@ 679-686 (lines=8) @@
676
     * @env firefox
677
     * @env chrome
678
     */
679
    public function product_商品CSV登録雛形ファイルダウンロード(\AcceptanceTester $I)
680
    {
681
        $I->wantTo('EA0306-UC01-T02 商品CSV登録雛形ファイルダウンロード');
682
683
        ProductCsvUploadPage::go($I)->雛形ダウンロード();
684
        $ProductTemplateCSV = $I->getLastDownloadFile('/^product\.csv$/');
685
        $I->assertEquals(1, count(file($ProductTemplateCSV)), 'ヘッダ行だけのファイル');
686
    }
687
688
    public function product_カテゴリCSV登録(\AcceptanceTester $I)
689
    {
@@ 712-720 (lines=9) @@
709
     * @env firefox
710
     * @env chrome
711
     */
712
    public function product_カテゴリCSV登録雛形ファイルダウンロード(\AcceptanceTester $I)
713
    {
714
        $I->wantTo('EA0307-UC01-T02 カテゴリCSV登録雛形ファイルダウンロード');
715
716
        // 雛形のダウンロード
717
        CategoryCsvUploadPage::go($I)->雛形ダウンロード();
718
        $CategoryTemplateCSV = $I->getLastDownloadFile('/^category\.csv$/');
719
        $I->assertEquals(1, count(file($CategoryTemplateCSV)), 'ヘッダ行だけのファイル');
720
    }
721
722
    public function product_一覧からの商品確認(\AcceptanceTester $I)
723
    {