示例#1
0
 /**
  * Checks whether postRole() actually updates the previously created Role on the server.
  */
 public function testPostRole_updatesRole()
 {
     $this->jc->putRole($this->newRole);
     $old_role_name = $this->newRole->getRoleName();
     $this->newRole->setRoleName('ROLE_TESTER');
     $this->jc->postRole($this->newRole, $old_role_name);
     $tempRole = $this->jc->getRoles($this->newRole->getRoleName(), 'organization_1');
     $this->assertEquals($this->newRole->getRoleName(), $tempRole->getRoleName());
 }