public function testCreateActionWithInvalidPostData() { $this->dispatch('/admin/development/document-type/create', 'POST', array('infos' => array('icon_id' => 3, 'name' => 'test'))); $this->assertResponseStatusCode(200); $this->assertModuleName('GcDevelopment'); $this->assertControllerName('DocumentTypeController'); $this->assertControllerClass('DocumentTypeController'); $this->assertMatchedRouteName('development/document-type/create'); }