Esempio n. 1
0
 /**
  * Checks whether deleteRole() actually deletes the previously created Role from the server.
  */
 public function testDeleteRole_removesRole()
 {
     $this->jc->putRole($this->newRole);
     $roleCount = count($this->jc->getRoles($this->newRole->getRoleName(), $this->newRole->getTenantId()));
     $this->jc->deleteRole($this->newRole);
     $this->assertEquals(0, count($this->jc->getRoles($this->newRole->getRoleName(), $this->newRole->getTenantId())));
     $this->newRole = null;
     // must nullify so tearUp doesn't interfere with results
 }