public function testCsvCategory()
{
$this->filepath = __DIR__ . '/categories.csv';
copy(__DIR__ . '/../../../../../Fixtures/categories.csv', $this->filepath);
// 削除されてしまうのでコピーしておく
$crawler = $this->scenario('admin_product_category_csv_import', 'categories.csv');
$Categories = $this->app['eccube.repository.category']->findAll();
$this->expected = 6;
$this->actual = count($Categories);
$this->verify();
$this->assertRegexp('/カテゴリ登録CSVファイルをアップロードしました。/u', $crawler->filter('div.alert-success')->text());
}