public function testEditProjectMember() { $project = Utils::addProject(); $user = Utils::addUser(); Utils::addUser2Project($project, $user); $user->setPermissionSet(Utils::addPermission()); $resp = Utils::getBuddy()->getApiProjects()->editProjectMember($user, Utils::getWorkspaceDomain(), $project->getName(), $user->getId()); $this->assertInstanceOf('Buddy\\Objects\\User', $resp); $this->assertEquals($user->getPermissionSet()->getId(), $resp->getPermissionSet()->getId()); }
public function testDeletePermission() { $perm = Utils::addPermission(); $resp = Utils::getBuddy()->getApiPermissions()->deleteWorkspacePermission(Utils::getWorkspaceDomain(), $perm->getId()); $this->assertEquals(true, $resp); }