diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2016-05-25 10:21:07 +0200 |
---|---|---|
committer | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-05-25 10:21:07 +0200 |
commit | 25f31107301b3ed08cbd9ade2a4bf37e88e54044 (patch) | |
tree | f577d25a273acdc25d9737c7e85aa69a91c4cf96 | |
parent | c36cf30ade2107342710c31ce963a7b9a224c902 (diff) | |
download | nextcloud-server-25f31107301b3ed08cbd9ade2a4bf37e88e54044.tar.gz nextcloud-server-25f31107301b3ed08cbd9ade2a4bf37e88e54044.zip |
Fix ShareControllerTest (#24824)
-rw-r--r-- | apps/files_sharing/tests/controller/sharecontroller.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files_sharing/tests/controller/sharecontroller.php b/apps/files_sharing/tests/controller/sharecontroller.php index df3973099fb..f38ae10ca12 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(); |