public function testStartProcessInstance() { $restClient = new camundaRestClient(self::$restApi); $countPreStart = $restClient->getProcessInstanceCount()->count; foreach ($restClient->getProcessDefinitions() as $data) { if ($data->key == 'invoice') { $restClient->startProcessInstance($data->id); } } $this->assertGreaterThan($countPreStart, $restClient->getProcessInstanceCount()->count); }
/** * @test */ public function getProcessInstanceCount() { $restClient = new camundaRestClient(self::$restApi); $pi = $restClient->getProcessInstanceCount()->count; $this->assertGreaterThan(0, $pi); }