GcDevelopment\Controller\LayoutControllerTest::testDownloadAction PHP Method

testDownloadAction() public method

Test
public testDownloadAction ( ) : void
return void
    public function testDownloadAction()
    {
        $layoutModel = LayoutModel::fromArray(array('name' => 'LayoutName', 'identifier' => 'LayoutIdentifier', 'content' => 'Test'));
        $layoutModel->save();
        $this->dispatch('/admin/development/layout/download/' . $layoutModel->getId());
        $this->assertResponseStatusCode(200);
        $this->assertModuleName('GcDevelopment');
        $this->assertControllerName('LayoutController');
        $this->assertControllerClass('LayoutController');
        $this->assertMatchedRouteName('development/layout/download');
        $layoutModel->delete();
    }