public function testCreateActionWithPostData() { $this->dispatch('/admin/development/layout/create', 'POST', array('name' => 'LayoutName', 'identifier' => 'Identifier', 'delayoution' => 'Delayoution')); $this->assertResponseStatusCode(302); $this->assertModuleName('GcDevelopment'); $this->assertControllerName('LayoutController'); $this->assertControllerClass('LayoutController'); $this->assertMatchedRouteName('development/layout/create'); LayoutModel::fromIdentifier('Identifier')->delete(); }