From d529235a1e5164cce0a02da1898310247964200e Mon Sep 17 00:00:00 2001 From: ywarnier Date: Fri, 22 Apr 2011 16:27:04 -0500 Subject: [PATCH] More fixes to tests --- tests/main/inc/lib/fileUpload.lib.test.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/main/inc/lib/fileUpload.lib.test.php b/tests/main/inc/lib/fileUpload.lib.test.php index 6dfb94627a..680e0d48bd 100755 --- a/tests/main/inc/lib/fileUpload.lib.test.php +++ b/tests/main/inc/lib/fileUpload.lib.test.php @@ -100,7 +100,7 @@ class TestFileUpload extends UnitTestCase { function testBuildMissingFilesForm() { global $_course; $missing_files = array(); - $upload_path=api_get_path(SYS_COURSE_PATH).'document/image'; + $upload_path=api_get_path(SYS_CODE_PATH).'default_course_document/images'; $file_name = 'board.jpg'; $res=build_missing_files_form($missing_files,$upload_path,$file_name); $this->assertTrue(is_string($res)); @@ -118,11 +118,9 @@ class TestFileUpload extends UnitTestCase { //space function testDirTotalSpace() { - $dirPath= api_get_path(SYS_COURSE_PATH).'document/'; + $dirPath= api_get_path(SYS_CODE_PATH).'default_course_document/images'; $res= dir_total_space($dirPath); - if(!is_string($res)) { - $this->assertTrue(is_numeric($res)); - } + $this->assertTrue($res>0,'The default_course_document/images dir should be larger than 0 bytes'); } //filter