コード例 #1
0
 /**
  * @test
  */
 public function updateUserProfile()
 {
     $restService = new camundaRestClient(self::$restApi);
     $user = array();
     $profile['id'] = 'shentschel';
     $profile['firstName'] = 'Stefan';
     $profile['lastName'] = 'Hentschel';
     $profile['email'] = '*****@*****.**';
     $credentials['password'] = '******';
     $user['profile'] = $profile;
     $user['credentials'] = $credentials;
     $restService->createSingleUser($user);
     $this->assertEquals('Stefan', $restService->getUserProfile('shentschel')->firstName);
     unset($profile);
     $profile = array();
     $profile['id'] = 'shentschel';
     $profile['firstName'] = 'John';
     $profile['lastName'] = 'Doe';
     $profile['email'] = '*****@*****.**';
     $restService->updateUserProfile('shentschel', $profile);
     $this->assertEquals('John', $restService->getUserProfile('shentschel')->firstName);
     $restService->deleteSingleUser('shentschel');
 }