Ejemplo n.º 1
0
 public function testUpdateGroup()
 {
     $restService = new camundaRestClient(self::$restApi);
     $groupRequest = array('name' => 'testgroup', 'id' => 'sales', 'type' => 'Organizational Unit');
     $restService->createSingleGroup($groupRequest);
     $this->assertEquals('testgroup', $restService->getSingleGroup('sales')->name);
     $update = array('name' => 'testgroup2', 'id' => 'sales', 'type' => 'Organizational Unit');
     $restService->updateSingleGroup('sales', $update);
     $this->assertEquals('testgroup2', $restService->getSingleGroup('sales')->name);
     $restService->deleteSingleGroup('sales');
 }