diff --git a/tests/unit/controller/PageControllerTest.php b/tests/unit/controller/PageControllerTest.php
index d46120042c..a2b4377404 100644
--- a/tests/unit/controller/PageControllerTest.php
+++ b/tests/unit/controller/PageControllerTest.php
@@ -73,7 +73,8 @@ public function testIndex() {
 		$this->mockUrlToUploadEndpoint($url);
 		$params = [
 			'appName' => $this->appName,
-			'uploadUrl' => $url
+			'uploadUrl' => $url,
+			'publicUploadEnabled' => $this->appConfig->getAppValue('core', 'shareapi_allow_public_upload', 'yes')
 		];
 		$template = new TemplateResponse($this->appName, 'index', $params);