public function testCsvCategoryWithNew()
{
$csv = array(array('カテゴリID', 'カテゴリ名', '親カテゴリID'), array('', '新カテゴリ', ''));
$this->filepath = $this->createCsvFromArray($csv, 'categories.csv');
$crawler = $this->scenario('admin_product_category_csv_import', 'categories.csv');
$Categories = $this->app['eccube.repository.category']->findBy(array('name' => '新カテゴリ'));
$this->expected = 1;
$this->actual = count($Categories);
$this->verify();
$this->assertRegexp('/カテゴリ登録CSVファイルをアップロードしました。/u', $crawler->filter('div.alert-success')->text());
}