From 617e9812583c59c3c48e19c363b3dd013691426b Mon Sep 17 00:00:00 2001 From: Arthur Portugal Date: Mon, 8 Feb 2010 10:50:46 -0500 Subject: [PATCH] MInor - changed bad assert (string), when is assert (bool) CT#191 --- 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 cb5375dd35..328f3d15cf 100755 --- a/tests/main/inc/lib/fileUpload.lib.test.php +++ b/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