From 25f31107301b3ed08cbd9ade2a4bf37e88e54044 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 25 May 2016 10:21:07 +0200 Subject: [PATCH] Fix ShareControllerTest (#24824) --- apps/files_sharing/tests/controller/sharecontroller.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/files_sharing/tests/controller/sharecontroller.php b/apps/files_sharing/tests/controller/sharecontroller.php index df3973099f..f38ae10ca1 100644 --- a/apps/files_sharing/tests/controller/sharecontroller.php +++ b/apps/files_sharing/tests/controller/sharecontroller.php @@ -183,7 +183,7 @@ class ShareControllerTest extends \Test\TestCase { $this->assertEquals($expectedResponse, $response); } - public function testAutehnticateInvalidToken() { + public function testAuthenticateInvalidToken() { $this->shareManager ->expects($this->once()) ->method('getShareByToken') @@ -333,6 +333,8 @@ class ShareControllerTest extends \Test\TestCase { [ ['max_filesize_animated_gifs_public_sharing', 10, 10], ['enable_previews', true, true], + ['preview_max_x', 1024, 1024], + ['preview_max_y', 1024, 1024], ] ); $shareTmpl['maxSizeAnimateGif'] = $this->config->getSystemValue('max_filesize_animated_gifs_public_sharing', 10); @@ -364,6 +366,8 @@ class ShareControllerTest extends \Test\TestCase { 'maxSizeAnimateGif' => 10, 'previewSupported' => true, 'previewEnabled' => true, + 'previewMaxX' => 1024, + 'previewMaxY' => 1024, ); $csp = new \OCP\AppFramework\Http\ContentSecurityPolicy();