Fix ShareControllerTest (#24824)

This commit is contained in:
Joas Schilling 2016-05-25 10:21:07 +02:00 committed by Thomas Müller
parent c36cf30ade
commit 25f3110730
1 changed files with 5 additions and 1 deletions

View File

@ -183,7 +183,7 @@ class ShareControllerTest extends \Test\TestCase {
$this->assertEquals($expectedResponse, $response); $this->assertEquals($expectedResponse, $response);
} }
public function testAutehnticateInvalidToken() { public function testAuthenticateInvalidToken() {
$this->shareManager $this->shareManager
->expects($this->once()) ->expects($this->once())
->method('getShareByToken') ->method('getShareByToken')
@ -333,6 +333,8 @@ class ShareControllerTest extends \Test\TestCase {
[ [
['max_filesize_animated_gifs_public_sharing', 10, 10], ['max_filesize_animated_gifs_public_sharing', 10, 10],
['enable_previews', true, true], ['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); $shareTmpl['maxSizeAnimateGif'] = $this->config->getSystemValue('max_filesize_animated_gifs_public_sharing', 10);
@ -364,6 +366,8 @@ class ShareControllerTest extends \Test\TestCase {
'maxSizeAnimateGif' => 10, 'maxSizeAnimateGif' => 10,
'previewSupported' => true, 'previewSupported' => true,
'previewEnabled' => true, 'previewEnabled' => true,
'previewMaxX' => 1024,
'previewMaxY' => 1024,
); );
$csp = new \OCP\AppFramework\Http\ContentSecurityPolicy(); $csp = new \OCP\AppFramework\Http\ContentSecurityPolicy();