GcDevelopment\Controller\ViewControllerTest::testDownloadActionWithEmptyContent PHP Метод

testDownloadActionWithEmptyContent() публичный Метод

Test
public testDownloadActionWithEmptyContent ( ) : void
Результат void
    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();
    }