public function testCreateActionWithPostData() { $this->dispatch('/admin/config/user/role/create', 'POST', array('name' => 'RoleCreateTest', 'description' => 'Description')); $this->assertResponseStatusCode(302); $this->assertModuleName('GcConfig'); $this->assertControllerName('RoleController'); $this->assertControllerClass('RoleController'); $this->assertMatchedRouteName('config/user/role/create'); }