]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix tests 12303/head
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Tue, 6 Nov 2018 14:52:49 +0000 (15:52 +0100)
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Tue, 6 Nov 2018 15:05:34 +0000 (16:05 +0100)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
apps/files/tests/Controller/ViewControllerTest.php
apps/files_sharing/tests/Controller/ShareControllerTest.php

index f11a6faf8635e46acf50d336e7f5c0dfb086b368..35fc1e74c1a05b24f55468c5592c070a12bae309 100644 (file)
@@ -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();
index c5306cbc0ce971dbe9bfe5fff0fe21b72c51fc79..564977c09bcbf40138b6f51cdd9aa1c9dce31bf2 100644 (file)
@@ -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();