public testDownloadActionWithEmptyContent ( ) : void | ||
return | void |
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();
}