@@ 678-685 (lines=8) @@ | ||
675 | * @env firefox |
|
676 | * @env chrome |
|
677 | */ |
|
678 | public function product_商品CSV登録雛形ファイルダウンロード(\AcceptanceTester $I) |
|
679 | { |
|
680 | $I->wantTo('EA0306-UC01-T02 商品CSV登録雛形ファイルダウンロード'); |
|
681 | ||
682 | ProductCsvUploadPage::go($I)->雛形ダウンロード(); |
|
683 | $ProductTemplateCSV = $I->getLastDownloadFile('/^product\.csv$/'); |
|
684 | $I->assertEquals(1, count(file($ProductTemplateCSV)), 'ヘッダ行だけのファイル'); |
|
685 | } |
|
686 | ||
687 | public function product_カテゴリCSV登録(\AcceptanceTester $I) |
|
688 | { |
|
@@ 711-719 (lines=9) @@ | ||
708 | * @env firefox |
|
709 | * @env chrome |
|
710 | */ |
|
711 | public function product_カテゴリCSV登録雛形ファイルダウンロード(\AcceptanceTester $I) |
|
712 | { |
|
713 | $I->wantTo('EA0307-UC01-T02 カテゴリCSV登録雛形ファイルダウンロード'); |
|
714 | ||
715 | // 雛形のダウンロード |
|
716 | CategoryCsvUploadPage::go($I)->雛形ダウンロード(); |
|
717 | $CategoryTemplateCSV = $I->getLastDownloadFile('/^category\.csv$/'); |
|
718 | $I->assertEquals(1, count(file($CategoryTemplateCSV)), 'ヘッダ行だけのファイル'); |
|
719 | } |
|
720 | ||
721 | public function product_一覧からの商品確認(\AcceptanceTester $I) |
|
722 | { |
@@ 301-308 (lines=8) @@ | ||
298 | } |
|
299 | } |
|
300 | ||
301 | public function shipping_出荷CSV雛形ファイルダウンロード(\AcceptanceTester $I) |
|
302 | { |
|
303 | $I->wantTo('EA0093-UC04-T02 出荷CSV雛形ファイルのダウンロード'); |
|
304 | ||
305 | ShippingCsvUploadPage::go($I)->雛形ダウンロード(); |
|
306 | $csv = $I->getLastDownloadFile('/^shipping\.csv$/'); |
|
307 | $I->assertEquals(mb_convert_encoding(file_get_contents($csv), 'UTF-8', 'Shift_JIS'), '出荷ID,出荷伝票番号,出荷日'.PHP_EOL); |
|
308 | } |
|
309 | } |
|
310 |