Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2016-05-25 11:21:07 +0300
committerThomas Müller <DeepDiver1975@users.noreply.github.com>2016-05-25 11:21:07 +0300
commit25f31107301b3ed08cbd9ade2a4bf37e88e54044 (patch)
treef577d25a273acdc25d9737c7e85aa69a91c4cf96
parentc36cf30ade2107342710c31ce963a7b9a224c902 (diff)
Fix ShareControllerTest (#24824)
-rw-r--r--apps/files_sharing/tests/controller/sharecontroller.php6
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();