GcDevelopment\Controller\ScriptControllerTest::testDownloadActionWithoutId PHP Method

testDownloadActionWithoutId() public method

Test
public testDownloadActionWithoutId ( ) : void
return void
    public function testDownloadActionWithoutId()
    {
        $scriptModel = ScriptModel::fromArray(array('name' => 'ScriptName', 'identifier' => 'ScriptIdentifier', 'content' => 'Content'));
        $scriptModel->save();
        $this->dispatch('/admin/development/script/download');
        $this->assertResponseStatusCode(200);
        $this->assertModuleName('GcDevelopment');
        $this->assertControllerName('ScriptController');
        $this->assertControllerClass('ScriptController');
        $this->assertMatchedRouteName('development/script/download');
        $scriptModel->delete();
    }