GcDevelopment\Controller\ViewControllerTest::testDownloadActionWithEmptyContent PHP Method

testDownloadActionWithEmptyContent() public method

Test
    public function testDownloadActionWithEmptyContent()
    {
        $viewModel = ViewModel::fromArray(array('name' => 'ViewName', 'identifier' => 'ViewIdentifier'));
        $viewModel->save();
        $this->dispatch('/admin/development/view/download/' . $viewModel->getId());
        $this->assertResponseStatusCode(302);
        $this->assertModuleName('GcDevelopment');
        $this->assertControllerName('ViewController');
        $this->assertControllerClass('ViewController');
        $this->assertMatchedRouteName('development/view/download');
        $viewModel->delete();
    }