Bläddra i källkod

Fixed test on resize_picture()

ywarnier 13 år sedan
förälder
incheckning
fd46296561
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      tests/main/inc/lib/usermanager.lib.test.php

+ 2 - 2
tests/main/inc/lib/usermanager.lib.test.php

@@ -287,11 +287,11 @@ class TestUserManager extends UnitTestCase {
 	 	$this->assertFalse($res);
 	 }
 
-	function testResizePicture() {
+	function testResizePictureEmptyPicture() {
 		$file='';
 		$max_size_for_picture='';
 		$res=UserManager::resize_picture($file, $max_size_for_picture);
-	 	$this->assertTrue($res instanceof image);
+	 	$this->assertNull($res);
 	}
 
 	function testSaveExtraFieldChanges() {