public function testAuthoritySubmitRemoveAuthority()
{
$this->deleteAllRows(array('dtb_authority_role'));
$form = array(array('Authority' => null, 'deny_url' => null));
$AuthorityRole = $this->newTestAuthorityRole();
$url = $this->app->url('admin_setting_system_authority');
// makes the POST request
$this->client->request('POST', $url, array('form' => array('AuthorityRoles' => $form, '_token' => 'dummy')));
$redirectUrl = $this->app->url('admin_setting_system_authority');
$this->assertTrue($this->client->getResponse()->isRedirect($redirectUrl));
$this->assertNull($AuthorityRole->getId());
}