Commit 58eecf42ab288d492e78c66e12f387be7878e74d

Authored by michael
1 parent 8cd91b90

testing update


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@91 c91229c3-7414-0410-bfa2-8a42b809f60b
tests/administration/UnitManager.php
1 <?php 1 <?php
2 2
3 // main library routines and defaults 3 // main library routines and defaults
4 -require_once("../config/dmsDefaults.php"); 4 +require_once("../../config/dmsDefaults.php");
5 require_once("$default->owl_fs_root/lib/owl.lib.php"); 5 require_once("$default->owl_fs_root/lib/owl.lib.php");
6 require_once("$default->owl_fs_root/lib/administration/UnitManager.inc"); 6 require_once("$default->owl_fs_root/lib/administration/UnitManager.inc");
7 7
@@ -9,14 +9,13 @@ echo &quot;&lt;pre&gt;&quot;; @@ -9,14 +9,13 @@ echo &quot;&lt;pre&gt;&quot;;
9 // unit tests for UnitManager methods 9 // unit tests for UnitManager methods
10 10
11 $um = new UnitManager(); 11 $um = new UnitManager();
12 -/*  
13 $userArray = $um->listLdapUsers($userNameSearch); 12 $userArray = $um->listLdapUsers($userNameSearch);
14 if (!'userArray') { 13 if (!'userArray') {
15 echo "ldap user lookup failed!<br>"; 14 echo "ldap user lookup failed!<br>";
16 } else { 15 } else {
17 print_r($userArray); 16 print_r($userArray);
18 } 17 }
19 -*/ 18 +/*
20 // do some transformation of the first entry in the array? 19 // do some transformation of the first entry in the array?
21 // think maybe just set username = uid 20 // think maybe just set username = uid
22 21
@@ -39,6 +38,6 @@ if (!$result) { @@ -39,6 +38,6 @@ if (!$result) {
39 } else { 38 } else {
40 echo "added user successfully<br>"; 39 echo "added user successfully<br>";
41 } 40 }
42 - 41 +*/
43 echo "</pre>"; 42 echo "</pre>";
44 ?> 43 ?>