Backup\Controller\IndexControllerTest::testDownloadContentActionWithEmptyWhatShouldRedirect PHP Méthode

testDownloadContentActionWithEmptyWhatShouldRedirect() public méthode

Test
    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');
    }