This repository has been archived on 2024-11-28. You can view files and clone it, but cannot push or open issues or pull requests.
Incam_SGD/tests/groups/basics/addGroup.php

16 lines
352 B
PHP

<?php
require_once("../../../config/dmsDefaults.php");
require_once(KT_LIB_DIR . '/groups/GroupUtil.php');
$ret = GroupUtil::addGroup(array("name" => "Test2"));
if (PEAR::isError($ret)) {
print "Error adding group: " . $ret->toString();
} else if ($ret === true) {
print "Group added successfully.\n";
} else {
print "Bad code!\n";
}
?>