MInor - changed bad assert (string), when is assert (bool) CT#191

skala
Arthur Portugal 15 years ago
parent bc3645d882
commit 617e981258
  1. 8
      tests/main/inc/lib/fileUpload.lib.test.php

@ -31,12 +31,10 @@ class TestFileUpload extends UnitTestCase {
$res= create_unexisting_directory($_course,$user_id,$to_group_id,$to_user_id,$base_work_dir,$desired_dir_name);
if(!is_null($res)) {
$this->assertTrue(is_string($res));
$this->assertTrue($res);
} else {
$this->assertFalse(is_string($res));
}
$this->assertTrue(is_bool($res));
$this->assertFalse($res);
}
}
/**
* Creates a file containing an html redirection to a given url

Loading…
Cancel
Save