예제 #1
0
 public function testGetGroupCount()
 {
     $restService = new camundaRestClient(self::$restApi);
     $groupRequest = array('name' => 'testgroup', 'id' => 'sales', 'type' => 'Organizational Unit');
     $restService->createSingleGroup($groupRequest);
     $this->assertEquals(1, $restService->getGroupsCount()->count);
     $groupRequest = array('name' => 'testgroup2', 'id' => 'sales2', 'type' => 'Organizational Unit');
     $restService->createSingleGroup($groupRequest);
     $this->assertEquals(2, $restService->getGroupsCount()->count);
     $filteredGroup = array('name' => 'testgroup');
     $this->assertEquals(1, $restService->getGroupsCount($filteredGroup)->count);
     $restService->deleteSingleGroup('sales');
     $restService->deleteSingleGroup('sales2');
     $this->assertEquals(0, $restService->getGroupsCount($filteredGroup)->count);
 }