Explorar o código

Fixed test on resize_picture()

ywarnier %!s(int64=13) %!d(string=hai) anos
pai
achega
fd46296561
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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() {