upload.xajax.test.php 643 B

12345678910111213141516171819202122232425
  1. <?php
  2. /** To can run this test you need change the line 17 in upload.xajax.php by:
  3. * $ul_info = array();
  4. * if(function_exists('uploadprogress_get_info'))
  5. * {
  6. * $ul_info = uploadprogress_get_info($upload_id);
  7. * }
  8. */
  9. require_once(api_get_path(LIBRARY_PATH).'upload.xajax.php');
  10. require_once(api_get_path(LIBRARY_PATH).'xajax/xajax.inc.php');
  11. require_once(api_get_path(LIBRARY_PATH).'xajax/xajaxResponse.inc.php');
  12. class TestUpdateXajax extends UnitTestCase {
  13. /*
  14. function testUpdateProgress(){
  15. $div_id='';
  16. $upload_id='';
  17. $res = updateProgress($div_id, $upload_id, $waitAfterupload=false);
  18. $this->assertTrue($res);
  19. }*/
  20. }
  21. ?>