GcDevelopment\Controller\ViewControllerTest::testDownloadActionWithoutId PHP Method

testDownloadActionWithoutId() public method

Test
public testDownloadActionWithoutId ( ) : void
return void
    public function testDownloadActionWithoutId()
    {
        $viewModel = ViewModel::fromArray(array('name' => 'ViewName', 'identifier' => 'ViewIdentifier', 'content' => 'Content'));
        $viewModel->save();
        $this->dispatch('/admin/development/view/download');
        $this->assertResponseStatusCode(200);
        $this->assertModuleName('GcDevelopment');
        $this->assertControllerName('ViewController');
        $this->assertControllerClass('ViewController');
        $this->assertMatchedRouteName('development/view/download');
        $viewModel->delete();
    }