Commit e655ef8611738a11a0e71e24a15d74c022fa2997
1 parent
e414ebe9
moved requires and updated @package for phpdoc
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@452 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
25 changed files
with
99 additions
and
53 deletions
tests/administration/groupManTesting.php
| @@ -3,6 +3,12 @@ | @@ -3,6 +3,12 @@ | ||
| 3 | 3 | ||
| 4 | <?php | 4 | <?php |
| 5 | 5 | ||
| 6 | + | ||
| 7 | +require ("./config/dmsDefaults.php"); | ||
| 8 | +//require ("$default->owl_fs_root/lib/db.inc"); | ||
| 9 | +require ("$default->owl_fs_root/lib/dms.inc"); | ||
| 10 | +require ("$default->owl_fs_root/lib/administration/GroupManager.inc"); | ||
| 11 | + | ||
| 6 | /*-----------------------------------------------------------------*/ | 12 | /*-----------------------------------------------------------------*/ |
| 7 | /** | 13 | /** |
| 8 | * $Id: UserManTesting.php | 14 | * $Id: UserManTesting.php |
| @@ -26,11 +32,6 @@ | @@ -26,11 +32,6 @@ | ||
| 26 | /*-----------------------------------------------------------------*/ | 32 | /*-----------------------------------------------------------------*/ |
| 27 | 33 | ||
| 28 | 34 | ||
| 29 | -require ("./config/dmsDefaults.php"); | ||
| 30 | -//require ("$default->owl_fs_root/lib/db.inc"); | ||
| 31 | -require ("$default->owl_fs_root/lib/dms.inc"); | ||
| 32 | -require ("$default->owl_fs_root/lib/administration/GroupManager.inc"); | ||
| 33 | - | ||
| 34 | $group = new groupManager; | 35 | $group = new groupManager; |
| 35 | 36 | ||
| 36 | 37 |
tests/administration/userManTesting.php
| @@ -3,6 +3,11 @@ | @@ -3,6 +3,11 @@ | ||
| 3 | 3 | ||
| 4 | <?php | 4 | <?php |
| 5 | 5 | ||
| 6 | +require ("./config/dmsDefaults.php"); | ||
| 7 | +//require ("$default->owl_fs_root/lib/db.inc"); | ||
| 8 | +require ("$default->owl_fs_root/lib/dms.inc"); | ||
| 9 | +require ("$default->owl_fs_root/lib/administration/UserManager.inc"); | ||
| 10 | + | ||
| 6 | /*-----------------------------------------------------------------*/ | 11 | /*-----------------------------------------------------------------*/ |
| 7 | /** | 12 | /** |
| 8 | * $Id: UserManTesting.php | 13 | * $Id: UserManTesting.php |
| @@ -26,10 +31,6 @@ | @@ -26,10 +31,6 @@ | ||
| 26 | /*-----------------------------------------------------------------*/ | 31 | /*-----------------------------------------------------------------*/ |
| 27 | 32 | ||
| 28 | 33 | ||
| 29 | -require ("./config/dmsDefaults.php"); | ||
| 30 | -//require ("$default->owl_fs_root/lib/db.inc"); | ||
| 31 | -require ("$default->owl_fs_root/lib/dms.inc"); | ||
| 32 | -require ("$default->owl_fs_root/lib/administration/UserManager.inc"); | ||
| 33 | 34 | ||
| 34 | $user = new UserManager; | 35 | $user = new UserManager; |
| 35 | 36 |
tests/documentmanagement/document.php
| 1 | <?php | 1 | <?php |
| 2 | 2 | ||
| 3 | +require_once("../../config/dmsDefaults.php"); | ||
| 4 | + | ||
| 3 | /** | 5 | /** |
| 4 | * Contains unit tests for class Document in /lib/documentmanagement/Document.inc | 6 | * Contains unit tests for class Document in /lib/documentmanagement/Document.inc |
| 5 | * | 7 | * |
| @@ -9,10 +11,9 @@ | @@ -9,10 +11,9 @@ | ||
| 9 | * o storing of object | 11 | * o storing of object |
| 10 | * o updating of object | 12 | * o updating of object |
| 11 | * o deletion of object | 13 | * o deletion of object |
| 14 | +* @package tests.documentmanagement | ||
| 12 | */ | 15 | */ |
| 13 | 16 | ||
| 14 | -require_once("../../config/dmsDefaults.php"); | ||
| 15 | - | ||
| 16 | if (checkSession()) { | 17 | if (checkSession()) { |
| 17 | require_once("$default->owl_fs_root/lib/documentmanagement/Document.inc"); | 18 | require_once("$default->owl_fs_root/lib/documentmanagement/Document.inc"); |
| 18 | require_once("$default->owl_fs_root/lib/foldermanagement/FolderManager.inc"); | 19 | require_once("$default->owl_fs_root/lib/foldermanagement/FolderManager.inc"); |
tests/documentmanagement/documentDownload.php
| 1 | <?php | 1 | <?php |
| 2 | + | ||
| 3 | +require_once("../../config/dmsDefaults.php"); | ||
| 4 | + | ||
| 2 | /** | 5 | /** |
| 3 | * Contains code to test the dowloading of a document from the server | 6 | * Contains code to test the dowloading of a document from the server |
| 4 | * found in /lib/documentmanagement/PhysicalDocumentManager.php | 7 | * found in /lib/documentmanagement/PhysicalDocumentManager.php |
| 5 | * | 8 | * |
| 6 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | 9 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 7 | * @date 17 January 2003 | 10 | * @date 17 January 2003 |
| 11 | +* @package tests.documentmanagement | ||
| 8 | */ | 12 | */ |
| 9 | 13 | ||
| 10 | -require_once("../../config/dmsDefaults.php"); | ||
| 11 | - | ||
| 12 | if (checkSession()) { | 14 | if (checkSession()) { |
| 13 | require_once("$default->owl_fs_root/lib/documentmanagement/PhysicalDocumentManager.inc"); | 15 | require_once("$default->owl_fs_root/lib/documentmanagement/PhysicalDocumentManager.inc"); |
| 14 | require_once("$default->owl_fs_root/lib/documentmanagement/Document.inc"); | 16 | require_once("$default->owl_fs_root/lib/documentmanagement/Document.inc"); |
tests/documentmanagement/documentDownload2.php
| 1 | <?php | 1 | <?php |
| 2 | require_once("../../config/dmsDefaults.php"); | 2 | require_once("../../config/dmsDefaults.php"); |
| 3 | 3 | ||
| 4 | +/** | ||
| 5 | + * @package tests.documentmanagement | ||
| 6 | + */ | ||
| 4 | if (checkSession()) { | 7 | if (checkSession()) { |
| 5 | require_once("$default->owl_fs_root/lib/documentmanagement/PhysicalDocumentManager.inc"); | 8 | require_once("$default->owl_fs_root/lib/documentmanagement/PhysicalDocumentManager.inc"); |
| 6 | require_once("$default->owl_fs_root/lib/documentmanagement/Document.inc"); | 9 | require_once("$default->owl_fs_root/lib/documentmanagement/Document.inc"); |
tests/documentmanagement/documentField.php
| 1 | <?php | 1 | <?php |
| 2 | 2 | ||
| 3 | +require_once("../../config/dmsDefaults.php"); | ||
| 4 | + | ||
| 3 | /** | 5 | /** |
| 4 | * Unit test for class DocumentField found in /lib/documentmanagement/DocumentField.inc | 6 | * Unit test for class DocumentField found in /lib/documentmanagement/DocumentField.inc |
| 5 | * | 7 | * |
| 6 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | 8 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 7 | * @date 19 January 2003 | 9 | * @date 19 January 2003 |
| 8 | -* | 10 | +* @package tests.documentmanagement |
| 9 | */ | 11 | */ |
| 10 | 12 | ||
| 11 | -require_once("../../config/dmsDefaults.php"); | ||
| 12 | - | ||
| 13 | if (checkSession) { | 13 | if (checkSession) { |
| 14 | require_once("$default->owl_fs_root/lib/documentmanagement/DocumentField.inc"); | 14 | require_once("$default->owl_fs_root/lib/documentmanagement/DocumentField.inc"); |
| 15 | 15 |
tests/documentmanagement/documentFieldLink.php
| 1 | <?php | 1 | <?php |
| 2 | 2 | ||
| 3 | +require_once("../../config/dmsDefaults.php"); | ||
| 4 | + | ||
| 3 | /** | 5 | /** |
| 4 | * Unit test for class DocumentField found in /lib/documentmanagement/DocumentField.inc | 6 | * Unit test for class DocumentField found in /lib/documentmanagement/DocumentField.inc |
| 5 | * | 7 | * |
| 6 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | 8 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 7 | * @date 19 January 2003 | 9 | * @date 19 January 2003 |
| 8 | -* | 10 | +* @package tests.documentmanagement |
| 9 | */ | 11 | */ |
| 10 | 12 | ||
| 11 | -require_once("../../config/dmsDefaults.php"); | ||
| 12 | - | ||
| 13 | if (checkSession) { | 13 | if (checkSession) { |
| 14 | require_once("$default->owl_fs_root/lib/documentmanagement/DocumentFieldLink.inc"); | 14 | require_once("$default->owl_fs_root/lib/documentmanagement/DocumentFieldLink.inc"); |
| 15 | 15 |
tests/documentmanagement/documentTransactions.php
| 1 | <?php | 1 | <?php |
| 2 | + | ||
| 3 | +require_once("../../config/dmsDefaults.php"); | ||
| 4 | + | ||
| 2 | /** | 5 | /** |
| 3 | * Unit test for class DocumentTransaction in /lib/documentmanagement/DocumentTransaction.inc | 6 | * Unit test for class DocumentTransaction in /lib/documentmanagement/DocumentTransaction.inc |
| 4 | * | 7 | * |
| 5 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | 8 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 6 | * @date 18 January 2003 | 9 | * @date 18 January 2003 |
| 7 | -* | 10 | +* @package tests.documentmanagement |
| 8 | */ | 11 | */ |
| 9 | -require_once("../../config/dmsDefaults.php"); | 12 | + |
| 10 | 13 | ||
| 11 | if (checkSession()) { | 14 | if (checkSession()) { |
| 12 | require_once("$default->owl_fs_root/lib/documentmanagement/Document.inc"); | 15 | require_once("$default->owl_fs_root/lib/documentmanagement/Document.inc"); |
tests/documentmanagement/documentTypeTest.php
| 1 | <?php | 1 | <?php |
| 2 | 2 | ||
| 3 | -/** | ||
| 4 | -* Unit tests for ./lib/documentmanagement/DocumentManager class, | ||
| 5 | -* document type functionality | ||
| 6 | -* | ||
| 7 | -*/ | ||
| 8 | - | ||
| 9 | require_once ("../../config/owl.php"); | 3 | require_once ("../../config/owl.php"); |
| 10 | require_once ($default->owl_fs_root . "/config/environment.php"); | 4 | require_once ($default->owl_fs_root . "/config/environment.php"); |
| 11 | require_once ($default->owl_fs_root . "/config/dmsDefaults.php"); | 5 | require_once ($default->owl_fs_root . "/config/dmsDefaults.php"); |
| @@ -13,6 +7,13 @@ require_once ($default->owl_fs_root . "/lib/owl.lib.php"); | @@ -13,6 +7,13 @@ require_once ($default->owl_fs_root . "/lib/owl.lib.php"); | ||
| 13 | require_once ($default->owl_fs_root . "/lib/documentmanagement/DocumentManager.inc"); | 7 | require_once ($default->owl_fs_root . "/lib/documentmanagement/DocumentManager.inc"); |
| 14 | 8 | ||
| 15 | /** | 9 | /** |
| 10 | +* Unit tests for ./lib/documentmanagement/DocumentManager class, | ||
| 11 | +* document type functionality | ||
| 12 | +* @package tests.documentmanagement | ||
| 13 | +*/ | ||
| 14 | + | ||
| 15 | + | ||
| 16 | +/** | ||
| 16 | * Database backend unit tests for: | 17 | * Database backend unit tests for: |
| 17 | * o Document type (document_types) | 18 | * o Document type (document_types) |
| 18 | * o Field (fields) | 19 | * o Field (fields) |
tests/documentmanagement/documentUpload.php
| 1 | <?php | 1 | <?php |
| 2 | + | ||
| 3 | +require_once("../../config/dmsDefaults.php"); | ||
| 4 | + | ||
| 2 | /** | 5 | /** |
| 3 | * Contains unit test functionality for upload function of class PhysicalDocumentManager found in | 6 | * Contains unit test functionality for upload function of class PhysicalDocumentManager found in |
| 4 | * /lib/documentmanagement/PhysicalDocumentManager.inc | 7 | * /lib/documentmanagement/PhysicalDocumentManager.inc |
| 5 | * | 8 | * |
| 6 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | 9 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 7 | * @date 17 January 2003 | 10 | * @date 17 January 2003 |
| 8 | -* | 11 | +* @package tests.documentmanagement |
| 9 | */ | 12 | */ |
| 10 | 13 | ||
| 11 | -require_once("../../config/dmsDefaults.php"); | ||
| 12 | - | ||
| 13 | if (checkSession()) { | 14 | if (checkSession()) { |
| 14 | require_once("$default->owl_fs_root/lib/documentmanagement/PhysicalDocumentManager.inc"); | 15 | require_once("$default->owl_fs_root/lib/documentmanagement/PhysicalDocumentManager.inc"); |
| 15 | require_once("$default->owl_fs_root/lib/folderManagement/Folder.inc"); | 16 | require_once("$default->owl_fs_root/lib/folderManagement/Folder.inc"); |
tests/documentmanagement/documentUpload2.php
| 1 | <?php | 1 | <?php |
| 2 | + | ||
| 3 | +require_once("../../config/dmsDefaults.php"); | ||
| 4 | + | ||
| 2 | /** | 5 | /** |
| 3 | * Second part of test file for document upload | 6 | * Second part of test file for document upload |
| 4 | * | 7 | * |
| 5 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | 8 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 6 | * @date 17 January 2003 | 9 | * @date 17 January 2003 |
| 7 | -* | 10 | +* @package tests.documentmanagement |
| 8 | */ | 11 | */ |
| 9 | 12 | ||
| 10 | -require_once("../../config/dmsDefaults.php"); | ||
| 11 | - | ||
| 12 | if (checkSession()) { | 13 | if (checkSession()) { |
| 13 | require_once("$default->owl_fs_root/lib/documentmanagement/PhysicalDocumentManager.inc"); | 14 | require_once("$default->owl_fs_root/lib/documentmanagement/PhysicalDocumentManager.inc"); |
| 14 | require_once("$default->owl_fs_root/lib/documentmanagement/Document.inc"); | 15 | require_once("$default->owl_fs_root/lib/documentmanagement/Document.inc"); |
tests/email/email.php
| 1 | <?php | 1 | <?php |
| 2 | + | ||
| 3 | +require_once("../../config/dmsDefaults.php"); | ||
| 4 | + | ||
| 2 | /** | 5 | /** |
| 3 | * Unit tests for static function in Email class in /lib/email/Email.inc | 6 | * Unit tests for static function in Email class in /lib/email/Email.inc |
| 4 | * | 7 | * |
| 5 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | 8 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 6 | * @date 19 January 2003 | 9 | * @date 19 January 2003 |
| 7 | -* | 10 | +* @package tests.email |
| 8 | */ | 11 | */ |
| 9 | 12 | ||
| 10 | -require_once("../../config/dmsDefaults.php"); | ||
| 11 | 13 | ||
| 12 | if (checkSession) { | 14 | if (checkSession) { |
| 13 | require_once("$default->owl_fs_root/lib/email/Email.inc"); | 15 | require_once("$default->owl_fs_root/lib/email/Email.inc"); |
tests/foldermanagement/folder.php
| 1 | <?php | 1 | <?php |
| 2 | + | ||
| 3 | +require_once("../../config/dmsDefaults.php"); | ||
| 4 | + | ||
| 2 | /** | 5 | /** |
| 3 | * Contains unit test code for class Folder in /lib/foldermanagement/Folder.inc | 6 | * Contains unit test code for class Folder in /lib/foldermanagement/Folder.inc |
| 4 | * | 7 | * |
| @@ -8,9 +11,9 @@ | @@ -8,9 +11,9 @@ | ||
| 8 | * o storing of object | 11 | * o storing of object |
| 9 | * o updating of object | 12 | * o updating of object |
| 10 | * o deletion of object | 13 | * o deletion of object |
| 14 | +* @package tests.foldermanagement | ||
| 11 | */ | 15 | */ |
| 12 | 16 | ||
| 13 | -require_once("../../config/dmsDefaults.php"); | ||
| 14 | 17 | ||
| 15 | if (checkSession()) { | 18 | if (checkSession()) { |
| 16 | require_once("$default->owl_fs_root/lib/foldermanagement/Folder.inc"); | 19 | require_once("$default->owl_fs_root/lib/foldermanagement/Folder.inc"); |
tests/groups/group.php
| 1 | <?php | 1 | <?php |
| 2 | + | ||
| 3 | +require_once("../../config/dmsDefaults.php"); | ||
| 4 | + | ||
| 2 | /** | 5 | /** |
| 3 | * @package tests.groups | 6 | * @package tests.groups |
| 4 | * | 7 | * |
| @@ -6,9 +9,9 @@ | @@ -6,9 +9,9 @@ | ||
| 6 | * | 9 | * |
| 7 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | 10 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 8 | * @date 20 January 2003 | 11 | * @date 20 January 2003 |
| 12 | +* @package tests.groups | ||
| 9 | */ | 13 | */ |
| 10 | 14 | ||
| 11 | -require_once("../../config/dmsDefaults.php"); | ||
| 12 | 15 | ||
| 13 | if (checkSession) { | 16 | if (checkSession) { |
| 14 | require_once("$default->owl_fs_root/lib/groups/GroupUnitLink.inc"); | 17 | require_once("$default->owl_fs_root/lib/groups/GroupUnitLink.inc"); |
tests/groups/groupFolderApprovalLink.php
| 1 | <?php | 1 | <?php |
| 2 | + | ||
| 3 | +require_once("../../config/dmsDefaults.php"); | ||
| 4 | + | ||
| 2 | /** | 5 | /** |
| 3 | * Unit test for class GroupFolderApprovalLink found in /lib/groups/GroupFolderApprovalLink.inc | 6 | * Unit test for class GroupFolderApprovalLink found in /lib/groups/GroupFolderApprovalLink.inc |
| 4 | * | 7 | * |
| @@ -8,7 +11,6 @@ | @@ -8,7 +11,6 @@ | ||
| 8 | * | 11 | * |
| 9 | */ | 12 | */ |
| 10 | 13 | ||
| 11 | -require_once("../../config/dmsDefaults.php"); | ||
| 12 | 14 | ||
| 13 | if (checkSession) { | 15 | if (checkSession) { |
| 14 | require_once("$default->owl_fs_root/lib/groups/GroupFolderApprovalLink.inc"); | 16 | require_once("$default->owl_fs_root/lib/groups/GroupFolderApprovalLink.inc"); |
tests/groups/groupUserLink.php
| 1 | <?php | 1 | <?php |
| 2 | + | ||
| 3 | +require_once("../../config/dmsDefaults.php"); | ||
| 4 | + | ||
| 2 | /** | 5 | /** |
| 3 | * @package tests.groups | 6 | * @package tests.groups |
| 4 | * | 7 | * |
| @@ -6,9 +9,9 @@ | @@ -6,9 +9,9 @@ | ||
| 6 | * | 9 | * |
| 7 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | 10 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 8 | * @date 20 January 2003 | 11 | * @date 20 January 2003 |
| 12 | +* @package tests.groups | ||
| 9 | */ | 13 | */ |
| 10 | 14 | ||
| 11 | -require_once("../../config/dmsDefaults.php"); | ||
| 12 | 15 | ||
| 13 | if (checkSession) { | 16 | if (checkSession) { |
| 14 | require_once("$default->owl_fs_root/lib/groups/GroupUserLink.inc"); | 17 | require_once("$default->owl_fs_root/lib/groups/GroupUserLink.inc"); |
tests/roles/roleFolderLink.php
| 1 | <?php | 1 | <?php |
| 2 | + | ||
| 3 | +require_once("../../config/dmsDefaults.php"); | ||
| 4 | + | ||
| 2 | /** | 5 | /** |
| 3 | * @package tests.roles | 6 | * @package tests.roles |
| 4 | * | 7 | * |
| @@ -6,9 +9,9 @@ | @@ -6,9 +9,9 @@ | ||
| 6 | * | 9 | * |
| 7 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | 10 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 8 | * @date 20 January 2003 | 11 | * @date 20 January 2003 |
| 12 | +* @package tests.roles | ||
| 9 | */ | 13 | */ |
| 10 | 14 | ||
| 11 | -require_once("../../config/dmsDefaults.php"); | ||
| 12 | 15 | ||
| 13 | if (checkSession) { | 16 | if (checkSession) { |
| 14 | require_once("$default->owl_fs_root/lib/roles/RoleFolderLink.inc"); | 17 | require_once("$default->owl_fs_root/lib/roles/RoleFolderLink.inc"); |
tests/roles/roles.php
| 1 | <?php | 1 | <?php |
| 2 | + | ||
| 3 | +require_once("../../config/dmsDefaults.php"); | ||
| 4 | + | ||
| 2 | /** | 5 | /** |
| 3 | * @package tests.roles | 6 | * @package tests.roles |
| 4 | * | 7 | * |
| @@ -6,9 +9,9 @@ | @@ -6,9 +9,9 @@ | ||
| 6 | * | 9 | * |
| 7 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | 10 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 8 | * @date 20 January 2003 | 11 | * @date 20 January 2003 |
| 12 | +* @package tests.roles | ||
| 9 | */ | 13 | */ |
| 10 | 14 | ||
| 11 | -require_once("../../config/dmsDefaults.php"); | ||
| 12 | 15 | ||
| 13 | if (checkSession) { | 16 | if (checkSession) { |
| 14 | require_once("$default->owl_fs_root/lib/roles/Role.inc"); | 17 | require_once("$default->owl_fs_root/lib/roles/Role.inc"); |
tests/units/unit.php
| 1 | <?php | 1 | <?php |
| 2 | + | ||
| 3 | +require_once("../../config/dmsDefaults.php"); | ||
| 4 | + | ||
| 2 | /** | 5 | /** |
| 3 | * Unit test for class Unit in /lib/units | 6 | * Unit test for class Unit in /lib/units |
| 4 | * | 7 | * |
| @@ -8,8 +11,6 @@ | @@ -8,8 +11,6 @@ | ||
| 8 | * | 11 | * |
| 9 | */ | 12 | */ |
| 10 | 13 | ||
| 11 | -require_once("../../config/dmsDefaults.php"); | ||
| 12 | - | ||
| 13 | if (checkSession) { | 14 | if (checkSession) { |
| 14 | require_once("$default->owl_fs_root/lib/units/Unit.inc"); | 15 | require_once("$default->owl_fs_root/lib/units/Unit.inc"); |
| 15 | 16 |
tests/users/user.php
| 1 | <?php | 1 | <?php |
| 2 | + | ||
| 3 | +require_once("../../config/dmsDefaults.php"); | ||
| 4 | + | ||
| 2 | /** | 5 | /** |
| 3 | * | 6 | * |
| 4 | * Unit tests for User class found in /lib/users/User.inc | 7 | * Unit tests for User class found in /lib/users/User.inc |
| @@ -8,7 +11,6 @@ | @@ -8,7 +11,6 @@ | ||
| 8 | * @package tests.users | 11 | * @package tests.users |
| 9 | */ | 12 | */ |
| 10 | 13 | ||
| 11 | -require_once("../../config/dmsDefaults.php"); | ||
| 12 | 14 | ||
| 13 | if (checkSession) { | 15 | if (checkSession) { |
| 14 | require_once("$default->owl_fs_root/lib/users/User.inc"); | 16 | require_once("$default->owl_fs_root/lib/users/User.inc"); |
tests/visualpatterns/listBoxTest.php
| 1 | <?php | 1 | <?php |
| 2 | + | ||
| 3 | +require_once("../../config/dmsDefaults.php"); | ||
| 4 | +require_once("$default->owl_fs_root/lib/visualpatterns/PatternListBox.inc"); | ||
| 5 | + | ||
| 2 | /** | 6 | /** |
| 3 | * Unit test code from PatternListBox class in /lib/visualpatterns/PatternListBox.inc | 7 | * Unit test code from PatternListBox class in /lib/visualpatterns/PatternListBox.inc |
| 4 | * | 8 | * |
| 5 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | 9 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 6 | * @date 16 January 2003 | 10 | * @date 16 January 2003 |
| 11 | +* @package tests.visualpatterns | ||
| 7 | */ | 12 | */ |
| 8 | 13 | ||
| 9 | -require_once("../../config/dmsDefaults.php"); | ||
| 10 | -require_once("$default->owl_fs_root/lib/visualpatterns/PatternListBox.inc"); | ||
| 11 | 14 | ||
| 12 | $oPatternListBox = & new PatternListBox("folders", "name", "id", "folders"); | 15 | $oPatternListBox = & new PatternListBox("folders", "name", "id", "folders"); |
| 13 | echo "<html><head></head><body>" . $oPatternListBox->render() . "</body></html>"; | 16 | echo "<html><head></head><body>" . $oPatternListBox->render() . "</body></html>"; |
tests/visualpatterns/test.php
| @@ -5,7 +5,9 @@ require_once ("./lib/visualpatterns/PatternImage.inc"); | @@ -5,7 +5,9 @@ require_once ("./lib/visualpatterns/PatternImage.inc"); | ||
| 5 | require_once ("./lib/visualpatterns/PatternTableLinks.inc"); | 5 | require_once ("./lib/visualpatterns/PatternTableLinks.inc"); |
| 6 | require_once ("./lib/visualpatterns/PatternTableSqlQuery.inc"); | 6 | require_once ("./lib/visualpatterns/PatternTableSqlQuery.inc"); |
| 7 | 7 | ||
| 8 | - | 8 | +/** |
| 9 | + * @package tests.visualpatterns | ||
| 10 | + */ | ||
| 9 | //North west image | 11 | //North west image |
| 10 | $img = new PatternImage("file://C:/temp/test/al.jpg"); | 12 | $img = new PatternImage("file://C:/temp/test/al.jpg"); |
| 11 | 13 |
tests/web/subscription.php
| 1 | <?php | 1 | <?php |
| 2 | + | ||
| 3 | +require_once("../../config/dmsDefaults.php"); | ||
| 4 | + | ||
| 2 | /** | 5 | /** |
| 3 | -* @package tests.web | ||
| 4 | * | 6 | * |
| 5 | * Unit tests for class Subscription found in /lib/web/Subscription.inc | 7 | * Unit tests for class Subscription found in /lib/web/Subscription.inc |
| 6 | * | 8 | * |
| 7 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | 9 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 8 | * @date 20 January 2003 | 10 | * @date 20 January 2003 |
| 11 | +* @package tests.web | ||
| 9 | */ | 12 | */ |
| 10 | 13 | ||
| 11 | -require_once("../../config/dmsDefaults.php"); | ||
| 12 | 14 | ||
| 13 | if (checkSession) { | 15 | if (checkSession) { |
| 14 | require_once("$default->owl_fs_root/lib/web/Subscription.inc"); | 16 | require_once("$default->owl_fs_root/lib/web/Subscription.inc"); |
tests/web/webDocument.php
| 1 | <?php | 1 | <?php |
| 2 | 2 | ||
| 3 | +require_once("../../config/dmsDefaults.php"); | ||
| 4 | + | ||
| 3 | /** | 5 | /** |
| 4 | * Unit test for class DocumentField found in /lib/documentmanagement/DocumentField.inc | 6 | * Unit test for class DocumentField found in /lib/documentmanagement/DocumentField.inc |
| 5 | * | 7 | * |
| 6 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | 8 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 7 | * @date 19 January 2003 | 9 | * @date 19 January 2003 |
| 8 | -* | 10 | +* @package tests.web |
| 9 | */ | 11 | */ |
| 10 | 12 | ||
| 11 | -require_once("../../config/dmsDefaults.php"); | ||
| 12 | 13 | ||
| 13 | if (checkSession) { | 14 | if (checkSession) { |
| 14 | require_once("$default->owl_fs_root/lib/web/WebDocument.inc"); | 15 | require_once("$default->owl_fs_root/lib/web/WebDocument.inc"); |
tests/web/webSite.php
| 1 | <?php | 1 | <?php |
| 2 | + | ||
| 3 | +require_once("../../config/dmsDefaults.php"); | ||
| 4 | + | ||
| 2 | /** | 5 | /** |
| 3 | -* @package tests.web | ||
| 4 | * | 6 | * |
| 5 | * Unit tests for WebSite class in /lib/web/WebSite.inc | 7 | * Unit tests for WebSite class in /lib/web/WebSite.inc |
| 6 | * | 8 | * |
| 7 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | 9 | * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa |
| 8 | * @date 20 January 2003 | 10 | * @date 20 January 2003 |
| 11 | +* @package tests.web | ||
| 9 | */ | 12 | */ |
| 10 | 13 | ||
| 11 | -require_once("../../config/dmsDefaults.php"); | ||
| 12 | 14 | ||
| 13 | if (checkSession()) { | 15 | if (checkSession()) { |
| 14 | require_once("$default->owl_fs_root/lib/web/WebSite.inc"); | 16 | require_once("$default->owl_fs_root/lib/web/WebSite.inc"); |