public function testEditException()
{
$tid = 99999;
$form = array('_token' => 'dummy', 'tax_rate' => 10, 'calc_rule' => rand(1, 3));
$this->client->request('POST', $this->app->url('admin_setting_shop_tax_edit', array('id' => $tid)), array('tax_rule' => $form));
$redirectUrl = $this->app->url('admin_setting_shop_tax');
$this->assertTrue($this->client->getResponse()->isRedirect($redirectUrl));
$this->expected = $form['tax_rate'];
$TargetTaxRule = $this->app['eccube.repository.tax_rule']->find($tid);
$this->actual = $TargetTaxRule->getTaxRate();
$this->verify();
}