public function testSubmit()
{
if ($this->app['config']['database']['driver'] == 'pdo_sqlite') {
// 何故か CsvType が EntityNotFoundException: Entity was not found. になる
$this->markTestSkipped('Can not support for sqlite3');
}
$csvType = CsvType::CSV_TYPE_PRODUCT;
$CsvOut = $this->createCsv($csvType);
$CsvNotOut = $this->createCsv($csvType);
$form = array('_token' => 'dummy', 'csv_type' => $csvType, 'csv_not_output' => array($CsvOut->getId()), 'csv_output' => array($CsvNotOut->getId()));
$this->client->request('POST', $this->app->url('admin_setting_shop_csv', array('id' => $csvType)), array('form' => $form));
$redirectUrl = $this->app->url('admin_setting_shop_csv', array('id' => $csvType));
$this->assertTrue($this->client->getResponse()->isRedirect($redirectUrl));
$this->actual = array($CsvNotOut->getEnableFlg(), $CsvOut->getEnableFlg());
$this->expected = array(Constant::ENABLED, Constant::DISABLED);
$this->verify();
}