Commit f1179bbebac8fc39dfd2538ab4bb4fa84526cb1d
1 parent
b231afef
Remove these tests too.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3358 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
0 additions
and
67 deletions
tests/lookup.php deleted
| 1 | -<?php | ||
| 2 | - | ||
| 3 | -/** | ||
| 4 | -* Unit tests for class Lookup in /lib/Lookup.inc | ||
| 5 | -* | ||
| 6 | -* @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | ||
| 7 | -* @date 19 January 2003 | ||
| 8 | -* | ||
| 9 | -*/ | ||
| 10 | - | ||
| 11 | -require_once("../config/dmsDefaults.php"); | ||
| 12 | - | ||
| 13 | -if (checkSession()) { | ||
| 14 | - require_once("$default->fileSystemRoot/lib/DefaultLookup.inc"); | ||
| 15 | - | ||
| 16 | - $oLookup = & new DefaultLookup("document_transaction_types_lookup", "View"); | ||
| 17 | - echo "Store? " . ($oLookup->create() ? "Yes" : "No: " . $_SESSION["errorMessage"]) . "<br>"; | ||
| 18 | - echo "Update? " . ($oLookup->update() ? "Yes" : "No: " . $_SESSION["errorMessage"]) . "<br>"; | ||
| 19 | - echo "Delete? " . ($oLookup->delete() ? "Yes" : "No: " . $_SESSION["errorMessage"]) . "<br>"; | ||
| 20 | - $oNewLookup = DefaultLookup::get("document_transaction_types_lookup", 1); | ||
| 21 | - if (!($oNewLookup === false)) { | ||
| 22 | - echo "Get? Yes -> <pre> " . var_dump($oNewLookup) . "</pre><br>"; | ||
| 23 | - } else { | ||
| 24 | - echo "Get? No: " . $_SESSION["errorMessage"]; | ||
| 25 | - } | ||
| 26 | -} | ||
| 27 | - | ||
| 28 | -?> |
tests/system.php deleted
| 1 | -<?php | ||
| 2 | -require_once("../config/dmsDefaults.php"); | ||
| 3 | - | ||
| 4 | -/** | ||
| 5 | - * $Id$ | ||
| 6 | - * | ||
| 7 | - * Unit tests for lib/System.inc | ||
| 8 | - * | ||
| 9 | - * Licensed under the GNU GPL. For full terms see the file COPYING. | ||
| 10 | - * | ||
| 11 | - * @version $Revision$ | ||
| 12 | - * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa | ||
| 13 | - * @package tests | ||
| 14 | - */ | ||
| 15 | - | ||
| 16 | -//if (checkSession()) { | ||
| 17 | - echo "<pre>"; | ||
| 18 | - | ||
| 19 | - echo "System::get(ldapServer) = " . $default->system->get("ldapServer") . "\n"; | ||
| 20 | - echo "System::get(ldapRootDn) = " . $default->system->get("ldapRootDn") . "\n"; | ||
| 21 | - echo "System::get(emailServer) = " . $default->system->get("emailServer") . "\n"; | ||
| 22 | - echo "System::get(emailFrom) = " . $default->system->get("emailFrom") . "\n"; | ||
| 23 | - echo "System::get(emailFromName) = " . $default->system->get("emailFromName") . "\n"; | ||
| 24 | - echo "System::get(filesystemRoot) = " . $default->system->get("filesystemRoot") . "\n"; | ||
| 25 | - echo "System::get(documentRoot) = " . $default->system->get("documentRoot") . "\n"; | ||
| 26 | - echo "System::get(rootUrl) = " . $default->system->get("rootUrl") . "\n"; | ||
| 27 | - echo "System::get(graphicsUrl) = " . $default->system->get("graphicsUrl") . "\n"; | ||
| 28 | - | ||
| 29 | - echo "System::get(languageDirectory) = " . $default->system->get("languageDirectory") . "\n"; | ||
| 30 | - echo "System::get(uiDirectory) = " . $default->system->get("uiDirectory") . "\n"; | ||
| 31 | - echo "System::get(uiUrl) = " . $default->system->get("uiUrl") . "\n"; | ||
| 32 | - echo "System::get(useFs) = " . $default->system->get("useFs") . "\n"; | ||
| 33 | - echo "System::get(defaultLanguage) = " . $default->system->get("defaultLanguage") . "\n"; | ||
| 34 | - //echo "System::get(notificationLink) = " . $default->system->get("notificationLink") . "\n"; | ||
| 35 | - echo "System::get(sessionTimeout) = " . $default->system->get("sessionTimeout") . "\n"; | ||
| 36 | - echo "</pre>"; | ||
| 37 | -//} | ||
| 38 | -?> | ||
| 39 | - |