GcDevelopment\Controller\ScriptControllerTest::testDownloadActionWithEmptyContent PHP Method

testDownloadActionWithEmptyContent() public method

Test
    public function testDownloadActionWithEmptyContent()
    {
        $scriptModel = ScriptModel::fromArray(array('name' => 'ScriptName', 'identifier' => 'ScriptIdentifier'));
        $scriptModel->save();
        $this->dispatch('/admin/development/script/download/' . $scriptModel->getId());
        $this->assertResponseStatusCode(302);
        $this->assertModuleName('GcDevelopment');
        $this->assertControllerName('ScriptController');
        $this->assertControllerClass('ScriptController');
        $this->assertMatchedRouteName('development/script/download');
        $scriptModel->delete();
    }