Backup\Controller\IndexControllerTest::testDownloadDatabaseWithEmptyWhatShouldRedirect PHP Method

testDownloadDatabaseWithEmptyWhatShouldRedirect() public method

Test
    public function testDownloadDatabaseWithEmptyWhatShouldRedirect()
    {
        $this->dispatch('/admin/module/backup/download-database', 'POST', array('what' => ''));
        $this->assertResponseStatusCode(302);
        $this->assertModuleName('Backup');
        $this->assertControllerName('BackupController');
        $this->assertControllerClass('IndexController');
        $this->assertMatchedRouteName('module/backup/download-database');
    }