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