GcDevelopment\Controller\LayoutControllerTest::testEditActionWithPostData PHP Method

testEditActionWithPostData() public method

Test
public testEditActionWithPostData ( ) : void
return void
    public function testEditActionWithPostData()
    {
        $layoutModel = LayoutModel::fromArray(array('name' => 'LayoutName', 'identifier' => 'LayoutIdentifier'));
        $layoutModel->save();
        $this->dispatch('/admin/development/layout/edit/' . $layoutModel->getId(), 'POST', array('name' => 'LayoutName', 'identifier' => 'Identifier', 'delayoution' => 'Delayoution'));
        $this->assertResponseStatusCode(302);
        $this->assertModuleName('GcDevelopment');
        $this->assertControllerName('LayoutController');
        $this->assertControllerClass('LayoutController');
        $this->assertMatchedRouteName('development/layout/edit');
        LayoutModel::fromIdentifier('Identifier')->delete();
    }