public testDownloadContentActionWithEmptyWhatShouldRedirect ( ) : void | ||
return | void |
public function testDownloadContentActionWithEmptyWhatShouldRedirect()
{
$this->dispatch('/admin/module/backup/download-content', 'POST', array('what' => array()));
$this->assertResponseStatusCode(302);
$this->assertModuleName('Backup');
$this->assertControllerName('BackupController');
$this->assertControllerClass('IndexController');
$this->assertMatchedRouteName('module/backup/download-content');
}