GcDevelopment\Controller\ScriptControllerTest::testCreateActionWithPostData PHP Method

testCreateActionWithPostData() public method

Test
public testCreateActionWithPostData ( ) : void
return void
    public function testCreateActionWithPostData()
    {
        $this->dispatch('/admin/development/script/create', 'POST', array('name' => 'ScriptName', 'identifier' => 'Identifier', 'description' => 'Description'));
        $this->assertResponseStatusCode(302);
        $this->assertModuleName('GcDevelopment');
        $this->assertControllerName('ScriptController');
        $this->assertControllerClass('ScriptController');
        $this->assertMatchedRouteName('development/script/create');
        ScriptModel::fromIdentifier('Identifier')->delete();
    }