public function testEditActionWithInvalidPostData() { $layoutModel = LayoutModel::fromArray(array('name' => 'LayoutName', 'identifier' => 'LayoutIdentifier')); $layoutModel->save(); $this->dispatch('/admin/development/layout/edit/' . $layoutModel->getId(), 'POST', array()); $this->assertResponseStatusCode(200); $this->assertModuleName('GcDevelopment'); $this->assertControllerName('LayoutController'); $this->assertControllerClass('LayoutController'); $this->assertMatchedRouteName('development/layout/edit'); $layoutModel->delete(); }