public function testEdit()
{
$TaxRule = $this->createTaxRule();
$tid = $TaxRule->getId();
$now = new \DateTime();
$form = array('_token' => 'dummy', 'tax_rate' => 10, 'calc_rule' => rand(1, 3), 'apply_date' => $now->format('Y-m-d H:i'));
$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'];
$this->actual = $TaxRule->getTaxRate();
$this->verify();
}