owl_fs_root/lib/subscriptions/FolderSubscription.inc");
echo "Testing creation of new folder subscription object
";
$oFolderSubscription = & new FolderSubscription(1, 1);
if (isset($oFolderSubscription)) {
echo "Passed folder subscription creation test
";
echo "Testing getting and setting of values
";
echo "Current value of primary key: " . $oFolderSubscription->getID() . "
";
echo "This value CANNOT be altered manually
";
echo "Current value of folder subscription user id: " . $oFolderSubscription->getUserID() . "
";
echo "Setting folder subscription user id to: 23
";
$oFolderSubscription->setUserID(23);
echo "New value of folder subscription user id: " . $oFolderSubscription->getUserID() . "
";
echo "Current value of folder subscription folder id: " . $oFolderSubscription->getFolderID() . "
";
echo "Setting folder subscription folder id to 56
";
$oFolderSubscription->setFolderID(56);
echo "New folder subscription folder id: " . $oFolderSubscription->getFolderID() . "
";
echo "Testing storing of object in database
";
if ($oFolderSubscription->create()) {
echo "Passed storing of object in database test
";
echo "Testing object updating
";
if ($oFolderSubscription->update()) {
echo "Passed object updating test
";
echo "Testing getting of object from database using primary key
";
$oNewFolderSubscription = & FolderSubscription::get($oFolderSubscription->getID());
if (isset($oNewFolderSubscription)) {
echo "
" . arrayToString($oNewFolderSubscription) . "