Commit e655ef8611738a11a0e71e24a15d74c022fa2997

Authored by Michael Joseph
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
tests/administration/groupManTesting.php
... ... @@ -3,6 +3,12 @@
3 3  
4 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 14 * $Id: UserManTesting.php
... ... @@ -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 35 $group = new groupManager;
35 36  
36 37  
... ...
tests/administration/userManTesting.php
... ... @@ -3,6 +3,11 @@
3 3  
4 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 13 * $Id: UserManTesting.php
... ... @@ -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 35 $user = new UserManager;
35 36  
... ...
tests/documentmanagement/document.php
1 1 <?php
2 2  
  3 +require_once("../../config/dmsDefaults.php");
  4 +
3 5 /**
4 6 * Contains unit tests for class Document in /lib/documentmanagement/Document.inc
5 7 *
... ... @@ -9,10 +11,9 @@
9 11 * o storing of object
10 12 * o updating of object
11 13 * o deletion of object
  14 +* @package tests.documentmanagement
12 15 */
13 16  
14   -require_once("../../config/dmsDefaults.php");
15   -
16 17 if (checkSession()) {
17 18 require_once("$default->owl_fs_root/lib/documentmanagement/Document.inc");
18 19 require_once("$default->owl_fs_root/lib/foldermanagement/FolderManager.inc");
... ...
tests/documentmanagement/documentDownload.php
1 1 <?php
  2 +
  3 +require_once("../../config/dmsDefaults.php");
  4 +
2 5 /**
3 6 * Contains code to test the dowloading of a document from the server
4 7 * found in /lib/documentmanagement/PhysicalDocumentManager.php
5 8 *
6 9 * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
7 10 * @date 17 January 2003
  11 +* @package tests.documentmanagement
8 12 */
9 13  
10   -require_once("../../config/dmsDefaults.php");
11   -
12 14 if (checkSession()) {
13 15 require_once("$default->owl_fs_root/lib/documentmanagement/PhysicalDocumentManager.inc");
14 16 require_once("$default->owl_fs_root/lib/documentmanagement/Document.inc");
... ...
tests/documentmanagement/documentDownload2.php
1 1 <?php
2 2 require_once("../../config/dmsDefaults.php");
3 3  
  4 +/**
  5 + * @package tests.documentmanagement
  6 + */
4 7 if (checkSession()) {
5 8 require_once("$default->owl_fs_root/lib/documentmanagement/PhysicalDocumentManager.inc");
6 9 require_once("$default->owl_fs_root/lib/documentmanagement/Document.inc");
... ...
tests/documentmanagement/documentField.php
1 1 <?php
2 2  
  3 +require_once("../../config/dmsDefaults.php");
  4 +
3 5 /**
4 6 * Unit test for class DocumentField found in /lib/documentmanagement/DocumentField.inc
5 7 *
6 8 * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
7 9 * @date 19 January 2003
8   -*
  10 +* @package tests.documentmanagement
9 11 */
10 12  
11   -require_once("../../config/dmsDefaults.php");
12   -
13 13 if (checkSession) {
14 14 require_once("$default->owl_fs_root/lib/documentmanagement/DocumentField.inc");
15 15  
... ...
tests/documentmanagement/documentFieldLink.php
1 1 <?php
2 2  
  3 +require_once("../../config/dmsDefaults.php");
  4 +
3 5 /**
4 6 * Unit test for class DocumentField found in /lib/documentmanagement/DocumentField.inc
5 7 *
6 8 * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
7 9 * @date 19 January 2003
8   -*
  10 +* @package tests.documentmanagement
9 11 */
10 12  
11   -require_once("../../config/dmsDefaults.php");
12   -
13 13 if (checkSession) {
14 14 require_once("$default->owl_fs_root/lib/documentmanagement/DocumentFieldLink.inc");
15 15  
... ...
tests/documentmanagement/documentTransactions.php
1 1 <?php
  2 +
  3 +require_once("../../config/dmsDefaults.php");
  4 +
2 5 /**
3 6 * Unit test for class DocumentTransaction in /lib/documentmanagement/DocumentTransaction.inc
4 7 *
5 8 * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
6 9 * @date 18 January 2003
7   -*
  10 +* @package tests.documentmanagement
8 11 */
9   -require_once("../../config/dmsDefaults.php");
  12 +
10 13  
11 14 if (checkSession()) {
12 15 require_once("$default->owl_fs_root/lib/documentmanagement/Document.inc");
... ...
tests/documentmanagement/documentTypeTest.php
1 1 <?php
2 2  
3   -/**
4   -* Unit tests for ./lib/documentmanagement/DocumentManager class,
5   -* document type functionality
6   -*
7   -*/
8   -
9 3 require_once ("../../config/owl.php");
10 4 require_once ($default->owl_fs_root . "/config/environment.php");
11 5 require_once ($default->owl_fs_root . "/config/dmsDefaults.php");
... ... @@ -13,6 +7,13 @@ require_once ($default-&gt;owl_fs_root . &quot;/lib/owl.lib.php&quot;);
13 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 17 * Database backend unit tests for:
17 18 * o Document type (document_types)
18 19 * o Field (fields)
... ...
tests/documentmanagement/documentUpload.php
1 1 <?php
  2 +
  3 +require_once("../../config/dmsDefaults.php");
  4 +
2 5 /**
3 6 * Contains unit test functionality for upload function of class PhysicalDocumentManager found in
4 7 * /lib/documentmanagement/PhysicalDocumentManager.inc
5 8 *
6 9 * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
7 10 * @date 17 January 2003
8   -*
  11 +* @package tests.documentmanagement
9 12 */
10 13  
11   -require_once("../../config/dmsDefaults.php");
12   -
13 14 if (checkSession()) {
14 15 require_once("$default->owl_fs_root/lib/documentmanagement/PhysicalDocumentManager.inc");
15 16 require_once("$default->owl_fs_root/lib/folderManagement/Folder.inc");
... ...
tests/documentmanagement/documentUpload2.php
1 1 <?php
  2 +
  3 +require_once("../../config/dmsDefaults.php");
  4 +
2 5 /**
3 6 * Second part of test file for document upload
4 7 *
5 8 * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
6 9 * @date 17 January 2003
7   -*
  10 +* @package tests.documentmanagement
8 11 */
9 12  
10   -require_once("../../config/dmsDefaults.php");
11   -
12 13 if (checkSession()) {
13 14 require_once("$default->owl_fs_root/lib/documentmanagement/PhysicalDocumentManager.inc");
14 15 require_once("$default->owl_fs_root/lib/documentmanagement/Document.inc");
... ...
tests/email/email.php
1 1 <?php
  2 +
  3 +require_once("../../config/dmsDefaults.php");
  4 +
2 5 /**
3 6 * Unit tests for static function in Email class in /lib/email/Email.inc
4 7 *
5 8 * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
6 9 * @date 19 January 2003
7   -*
  10 +* @package tests.email
8 11 */
9 12  
10   -require_once("../../config/dmsDefaults.php");
11 13  
12 14 if (checkSession) {
13 15 require_once("$default->owl_fs_root/lib/email/Email.inc");
... ...
tests/foldermanagement/folder.php
1 1 <?php
  2 +
  3 +require_once("../../config/dmsDefaults.php");
  4 +
2 5 /**
3 6 * Contains unit test code for class Folder in /lib/foldermanagement/Folder.inc
4 7 *
... ... @@ -8,9 +11,9 @@
8 11 * o storing of object
9 12 * o updating of object
10 13 * o deletion of object
  14 +* @package tests.foldermanagement
11 15 */
12 16  
13   -require_once("../../config/dmsDefaults.php");
14 17  
15 18 if (checkSession()) {
16 19 require_once("$default->owl_fs_root/lib/foldermanagement/Folder.inc");
... ...
tests/groups/group.php
1 1 <?php
  2 +
  3 +require_once("../../config/dmsDefaults.php");
  4 +
2 5 /**
3 6 * @package tests.groups
4 7 *
... ... @@ -6,9 +9,9 @@
6 9 *
7 10 * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
8 11 * @date 20 January 2003
  12 +* @package tests.groups
9 13 */
10 14  
11   -require_once("../../config/dmsDefaults.php");
12 15  
13 16 if (checkSession) {
14 17 require_once("$default->owl_fs_root/lib/groups/GroupUnitLink.inc");
... ...
tests/groups/groupFolderApprovalLink.php
1 1 <?php
  2 +
  3 +require_once("../../config/dmsDefaults.php");
  4 +
2 5 /**
3 6 * Unit test for class GroupFolderApprovalLink found in /lib/groups/GroupFolderApprovalLink.inc
4 7 *
... ... @@ -8,7 +11,6 @@
8 11 *
9 12 */
10 13  
11   -require_once("../../config/dmsDefaults.php");
12 14  
13 15 if (checkSession) {
14 16 require_once("$default->owl_fs_root/lib/groups/GroupFolderApprovalLink.inc");
... ...
tests/groups/groupUserLink.php
1 1 <?php
  2 +
  3 +require_once("../../config/dmsDefaults.php");
  4 +
2 5 /**
3 6 * @package tests.groups
4 7 *
... ... @@ -6,9 +9,9 @@
6 9 *
7 10 * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
8 11 * @date 20 January 2003
  12 +* @package tests.groups
9 13 */
10 14  
11   -require_once("../../config/dmsDefaults.php");
12 15  
13 16 if (checkSession) {
14 17 require_once("$default->owl_fs_root/lib/groups/GroupUserLink.inc");
... ...
tests/roles/roleFolderLink.php
1 1 <?php
  2 +
  3 +require_once("../../config/dmsDefaults.php");
  4 +
2 5 /**
3 6 * @package tests.roles
4 7 *
... ... @@ -6,9 +9,9 @@
6 9 *
7 10 * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
8 11 * @date 20 January 2003
  12 +* @package tests.roles
9 13 */
10 14  
11   -require_once("../../config/dmsDefaults.php");
12 15  
13 16 if (checkSession) {
14 17 require_once("$default->owl_fs_root/lib/roles/RoleFolderLink.inc");
... ...
tests/roles/roles.php
1 1 <?php
  2 +
  3 +require_once("../../config/dmsDefaults.php");
  4 +
2 5 /**
3 6 * @package tests.roles
4 7 *
... ... @@ -6,9 +9,9 @@
6 9 *
7 10 * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
8 11 * @date 20 January 2003
  12 +* @package tests.roles
9 13 */
10 14  
11   -require_once("../../config/dmsDefaults.php");
12 15  
13 16 if (checkSession) {
14 17 require_once("$default->owl_fs_root/lib/roles/Role.inc");
... ...
tests/units/unit.php
1 1 <?php
  2 +
  3 +require_once("../../config/dmsDefaults.php");
  4 +
2 5 /**
3 6 * Unit test for class Unit in /lib/units
4 7 *
... ... @@ -8,8 +11,6 @@
8 11 *
9 12 */
10 13  
11   -require_once("../../config/dmsDefaults.php");
12   -
13 14 if (checkSession) {
14 15 require_once("$default->owl_fs_root/lib/units/Unit.inc");
15 16  
... ...
tests/users/user.php
1 1 <?php
  2 +
  3 +require_once("../../config/dmsDefaults.php");
  4 +
2 5 /**
3 6 *
4 7 * Unit tests for User class found in /lib/users/User.inc
... ... @@ -8,7 +11,6 @@
8 11 * @package tests.users
9 12 */
10 13  
11   -require_once("../../config/dmsDefaults.php");
12 14  
13 15 if (checkSession) {
14 16 require_once("$default->owl_fs_root/lib/users/User.inc");
... ...
tests/visualpatterns/listBoxTest.php
1 1 <?php
  2 +
  3 +require_once("../../config/dmsDefaults.php");
  4 +require_once("$default->owl_fs_root/lib/visualpatterns/PatternListBox.inc");
  5 +
2 6 /**
3 7 * Unit test code from PatternListBox class in /lib/visualpatterns/PatternListBox.inc
4 8 *
5 9 * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
6 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 15 $oPatternListBox = & new PatternListBox("folders", "name", "id", "folders");
13 16 echo "<html><head></head><body>" . $oPatternListBox->render() . "</body></html>";
... ...
tests/visualpatterns/test.php
... ... @@ -5,7 +5,9 @@ require_once (&quot;./lib/visualpatterns/PatternImage.inc&quot;);
5 5 require_once ("./lib/visualpatterns/PatternTableLinks.inc");
6 6 require_once ("./lib/visualpatterns/PatternTableSqlQuery.inc");
7 7  
8   -
  8 +/**
  9 + * @package tests.visualpatterns
  10 + */
9 11 //North west image
10 12 $img = new PatternImage("file://C:/temp/test/al.jpg");
11 13  
... ...
tests/web/subscription.php
1 1 <?php
  2 +
  3 +require_once("../../config/dmsDefaults.php");
  4 +
2 5 /**
3   -* @package tests.web
4 6 *
5 7 * Unit tests for class Subscription found in /lib/web/Subscription.inc
6 8 *
7 9 * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
8 10 * @date 20 January 2003
  11 +* @package tests.web
9 12 */
10 13  
11   -require_once("../../config/dmsDefaults.php");
12 14  
13 15 if (checkSession) {
14 16 require_once("$default->owl_fs_root/lib/web/Subscription.inc");
... ...
tests/web/webDocument.php
1 1 <?php
2 2  
  3 +require_once("../../config/dmsDefaults.php");
  4 +
3 5 /**
4 6 * Unit test for class DocumentField found in /lib/documentmanagement/DocumentField.inc
5 7 *
6 8 * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
7 9 * @date 19 January 2003
8   -*
  10 +* @package tests.web
9 11 */
10 12  
11   -require_once("../../config/dmsDefaults.php");
12 13  
13 14 if (checkSession) {
14 15 require_once("$default->owl_fs_root/lib/web/WebDocument.inc");
... ...
tests/web/webSite.php
1 1 <?php
  2 +
  3 +require_once("../../config/dmsDefaults.php");
  4 +
2 5 /**
3   -* @package tests.web
4 6 *
5 7 * Unit tests for WebSite class in /lib/web/WebSite.inc
6 8 *
7 9 * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
8 10 * @date 20 January 2003
  11 +* @package tests.web
9 12 */
10 13  
11   -require_once("../../config/dmsDefaults.php");
12 14  
13 15 if (checkSession()) {
14 16 require_once("$default->owl_fs_root/lib/web/WebSite.inc");
... ...