Commit 86a33ff057d3cd431113a99e82747ceba527a739
1 parent
38563ff8
Initial revision. Unit tests for document transaction type
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@339 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
20 additions
and
0 deletions
tests/documentmanagement/documentTransactions.php
0 → 100644
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | +* Unit test for class DocumentTransaction in /lib/documentmanagement/DocumentTransaction.inc | ||
| 4 | +* | ||
| 5 | +* @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | ||
| 6 | +* @date 18 January 2003 | ||
| 7 | +* | ||
| 8 | +*/ | ||
| 9 | +require_once("../../config/dmsDefaults.php"); | ||
| 10 | + | ||
| 11 | +if (checkSession()) { | ||
| 12 | + require_once("$default->owl_fs_root/lib/documentmanagement/Document.inc"); | ||
| 13 | + require_once("$default->owl_fs_root/lib/documentmanagement/DocumentTransaction.inc"); | ||
| 14 | + require_once("$default->owl_fs_root/lib/foldermanagement/FolderLib.inc"); | ||
| 15 | + require_once("$default->owl_fs_root/lib/foldermanagement/FolderManager.inc"); | ||
| 16 | + | ||
| 17 | + $oDocTransaction = & new DocumentTransaction(11, 'Test transaction', 1); | ||
| 18 | + echo "DB create successful? " . ($oDocTransaction->create() ? "Yes" : "No"); | ||
| 19 | +} | ||
| 20 | +?> |