Backup\Controller\IndexControllerTest::testUploadWithXml PHP Method

testUploadWithXml() public method

Test
public testUploadWithXml ( ) : void
return void
    public function testUploadWithXml()
    {
        $_FILES = array('upload' => array('name' => 'test.xml', 'type' => 'text/xml', 'size' => 8, 'tmp_name' => __DIR__ . '/_files/test.xml', 'error' => UPLOAD_ERR_OK));
        $this->dispatch('/admin/module/backup/upload-content');
        $this->assertResponseStatusCode(302);
        $this->assertModuleName('Backup');
        $this->assertControllerName('BackupController');
        $this->assertControllerClass('IndexController');
        $this->assertMatchedRouteName('module/backup/upload-content');
    }