GcDevelopment\Controller\DatatypeControllerTest::testEditActionWithPostData PHP Method

testEditActionWithPostData() public method

Test
public testEditActionWithPostData ( ) : void
return void
    public function testEditActionWithPostData()
    {
        $datatypeModel = DatatypeModel::fromArray(array('name' => 'DatatypeTest', 'model' => 'Textstring'));
        $datatypeModel->save();
        $this->dispatch('/admin/development/datatype/edit/' . $datatypeModel->getId(), 'POST', array('name' => 'DatatypeTest', 'model' => 'Textstring'));
        $this->assertResponseStatusCode(302);
        $this->assertModuleName('GcDevelopment');
        $this->assertControllerName('DatatypeController');
        $this->assertControllerClass('DatatypeController');
        $this->assertMatchedRouteName('development/datatype/edit');
        $datatypeModel->delete();
    }