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:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-12-10 17:08:19 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2019-12-10 22:06:30 +0300
commiteb8ca3783c49ad432338735b47d17dba46ed3f7b (patch)
treeb4647275f93673e2a897be6aded02d99cc28605b /tests/lib/App
parentd66246cf94eb1a13af9200c3dc79bf2f81b3346e (diff)
Viewer should be always enabled
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/App')
-rw-r--r--tests/lib/App/AppManagerTest.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/lib/App/AppManagerTest.php b/tests/lib/App/AppManagerTest.php
index b3437ad290c..11450667fcc 100644
--- a/tests/lib/App/AppManagerTest.php
+++ b/tests/lib/App/AppManagerTest.php
@@ -390,6 +390,7 @@ class AppManagerTest extends TestCase {
'test1',
'test3',
'twofactor_backupcodes',
+ 'viewer',
'workflowengine',
];
$this->assertEquals($apps, $this->manager->getInstalledApps());
@@ -418,6 +419,7 @@ class AppManagerTest extends TestCase {
'test1',
'test3',
'twofactor_backupcodes',
+ 'viewer',
'workflowengine',
];
$this->assertEquals($enabled, $this->manager->getEnabledAppsForUser($user));
@@ -444,6 +446,7 @@ class AppManagerTest extends TestCase {
'testnoversion' => ['id' => 'testnoversion', 'requiremin' => '8.2.0'],
'settings' => ['id' => 'settings'],
'twofactor_backupcodes' => ['id' => 'twofactor_backupcodes'],
+ 'viewer' => ['id' => 'viewer'],
'workflowengine' => ['id' => 'workflowengine'],
'oauth2' => ['id' => 'oauth2'],
];
@@ -494,6 +497,7 @@ class AppManagerTest extends TestCase {
'twofactor_backupcodes' => ['id' => 'twofactor_backupcodes'],
'workflowengine' => ['id' => 'workflowengine'],
'oauth2' => ['id' => 'oauth2'],
+ 'viewer' => ['id' => 'viewer'],
];
$manager->expects($this->any())
@@ -537,6 +541,7 @@ class AppManagerTest extends TestCase {
'test1',
'test3',
'twofactor_backupcodes',
+ 'viewer',
'workflowengine',
];
$this->assertEquals($enabled, $this->manager->getEnabledAppsForGroup($group));