Browse Source

Fix tests

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
pull/12303/head
John Molakvoæ (skjnldsv) 7 years ago
parent
commit
cac2f7f4d6
No known key found for this signature in database GPG Key ID: 60C25B8C072916CF
  1. 11
      apps/files/tests/Controller/ViewControllerTest.php
  2. 6
      apps/files_sharing/tests/Controller/ShareControllerTest.php

11
apps/files/tests/Controller/ViewControllerTest.php

@ -131,12 +131,13 @@ class ViewControllerTest extends TestCase {
[$this->user->getUID(), 'files', 'file_sorting', 'name', 'name'],
[$this->user->getUID(), 'files', 'file_sorting_direction', 'asc', 'asc'],
[$this->user->getUID(), 'files', 'show_hidden', false, false],
[$this->user->getUID(), 'files', 'show_grid', true, true],
]));
$this->config
->expects($this->any())
->method('getAppValue')
->will($this->returnArgument(2));
$this->config
->expects($this->any())
->method('getAppValue')
->will($this->returnArgument(2));
$nav = new Template('files', 'appnavigation');
$nav->assign('usage_relative', 123);
@ -366,6 +367,8 @@ class ViewControllerTest extends TestCase {
],
],
'hiddenFields' => [],
'showgridview' => true,
'isIE' => false,
]
);
$policy = new Http\ContentSecurityPolicy();

6
apps/files_sharing/tests/Controller/ShareControllerTest.php

@ -288,7 +288,8 @@ class ShareControllerTest extends \Test\TestCase {
'previewImage' => null,
'previewURL' => 'downloadURL',
'note' => $note,
'hideDownload' => false
'hideDownload' => false,
'showgridview' => true
);
$csp = new \OCP\AppFramework\Http\ContentSecurityPolicy();
@ -407,7 +408,8 @@ class ShareControllerTest extends \Test\TestCase {
'previewImage' => null,
'previewURL' => 'downloadURL',
'note' => $note,
'hideDownload' => true
'hideDownload' => true,
'showgridview' => true
);
$csp = new \OCP\AppFramework\Http\ContentSecurityPolicy();

Loading…
Cancel
Save