/** * Testing when The user is group admin filerelease admin and super user */ function testUserIsAdminSuperUserGroupAdminFRSAdmin() { $utils = new WebDAVUtilsTestVersion($this); $user = mock('PFUser'); $user->setReturnValue('isSuperUser', true); $project = new MockProject(); $user->setReturnValue('isMember', true); $this->assertEqual($utils->UserIsAdmin($user, $project->getGroupId()), true); }