Index: tests/phpunit/tests/upload.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- tests/phpunit/tests/upload.php	(revision 35390)
+++ tests/phpunit/tests/upload.php	(revision )
@@ -90,4 +90,68 @@
 		$this->assertEquals( '', $info['error'] );
 	}
 
+
+
+	function test_get_max_upload_size_proper_value_zero_first() {
+		if (is_multisite()) {
+			$this->markTestSkipped("This test doesn't work on multisite");
+		}
+
+
+		$first = 0;
+		$second = 700*1024*1024;
+
+		$result = wp_max_upload_size($first,$second);
+		$this->assertEquals($second, $result);
+	}
+
+
+	function test_get_max_upload_size_proper_value_zero_second() {
+		if (is_multisite()) {
+			$this->markTestSkipped("This test doesn't work on multisite");
+		}
+
+		$first = 700*1024*1024;
+		$second = 0;
+
+		$result = wp_max_upload_size($first,$second);
+		$this->assertEquals($first, $result);
+	}
+
+	function test_get_max_upload_size_proper_value_bigger_first() {
+		if (is_multisite()) {
+			$this->markTestSkipped("This test doesn't work on multisite");
+		}
+
+		$first = 700*1024*1024;
+		$second = 400*1024*1024;
+
+		$result = wp_max_upload_size($first,$second);
+		$this->assertEquals($second, $result);
+	}
+
+	function test_get_max_upload_size_proper_value_bigger_second() {
+		if (is_multisite()) {
+			$this->markTestSkipped("This test doesn't work on multisite");
+		}
+
+		$first = 700*1024*1024;
+		$second = 5000*1024*1024;
+
+		$result = wp_max_upload_size($first,$second);
+		$this->assertEquals($first, $result);
+	}
+
+	function test_get_max_upload_size_proper_value_equal() {
+		if (is_multisite()) {
+			$this->markTestSkipped("This test doesn't work on multisite");
+		}
+
+		$first = 700*1024*1024;
+		$second = 700*1024*1024;
+
+		$result = wp_max_upload_size($first,$second);
+		$this->assertEquals($first, $result);
+	}
+
 }
