GcDevelopment\Controller\LayoutControllerTest::testDownloadActionWithEmptyContent PHP Method

testDownloadActionWithEmptyContent() public method

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