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

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

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