git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_SGD/tags/3.7.0.2_original@1 eb19766c-00d9-a042-a3a0-45cb8ec72764
20 lines
605 B
PHP
20 lines
605 B
PHP
<?php
|
|
|
|
require_once(dirname(__FILE__) . '/../test.php');
|
|
require_once(KT_LIB_DIR . '/foldermanagement/folderutil.inc.php');
|
|
|
|
class DocumentUtilTestCase extends KTUnitTestCase {
|
|
|
|
function setup() {
|
|
$oRootFolder =& Folder::get(1);
|
|
$this->oUser = User::get(1);
|
|
$sName = 'DocumentUtilTest' . strftime('%Y%m%d%H%M%S');
|
|
$this->oFolder =& KTFolderUtil::add($oRootFolder, $sName, $this->oUser);
|
|
}
|
|
|
|
function tearDown() {
|
|
$aOptions = array('ignore_permissions' => true);
|
|
KTFolderUtil::delete($this->oFolder, $this->oUser, 'test case', $aOptions);
|
|
}
|
|
}
|