diff options
author | Felix A. Epp <work@felixepp.de> | 2017-04-06 13:10:42 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2017-04-25 00:22:57 +0200 |
commit | 2fbf1114aced77a3840ee024d925efb8671458fb (patch) | |
tree | 3bd608ac68550cec3507d2b19e6e6a66eb0f7095 /tests | |
parent | 47d9bffc53c7cdfd9f5547c690cfe9d5c184edae (diff) | |
download | nextcloud-server-2fbf1114aced77a3840ee024d925efb8671458fb.tar.gz nextcloud-server-2fbf1114aced77a3840ee024d925efb8671458fb.zip |
Add installed category in AppSettingsControlerTest
Signed-off-by: Felix A. Epp <work@felixepp.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Settings/Controller/AppSettingsControllerTest.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/tests/Settings/Controller/AppSettingsControllerTest.php b/tests/Settings/Controller/AppSettingsControllerTest.php index a3e4a6fd828..14dc33ca191 100644 --- a/tests/Settings/Controller/AppSettingsControllerTest.php +++ b/tests/Settings/Controller/AppSettingsControllerTest.php @@ -92,14 +92,19 @@ class AppSettingsControllerTest extends TestCase { public function testListCategories() { $expected = new JSONResponse([ [ + 'id' => 2, + 'ident' => 'installed', + 'displayName' => 'Your apps', + ], + [ 'id' => 0, 'ident' => 'enabled', - 'displayName' => 'Enabled', + 'displayName' => 'Enabled apps', ], [ 'id' => 1, 'ident' => 'disabled', - 'displayName' => 'Not enabled', + 'displayName' => 'Disabled apps', ], [ 'id' => 'auth', @@ -175,7 +180,7 @@ class AppSettingsControllerTest extends TestCase { $policy = new ContentSecurityPolicy(); $policy->addAllowedImageDomain('https://usercontent.apps.nextcloud.com'); - $expected = new TemplateResponse('settings', 'apps', ['category' => 'enabled', 'appstoreEnabled' => true], 'user'); + $expected = new TemplateResponse('settings', 'apps', ['category' => 'installed', 'appstoreEnabled' => true], 'user'); $expected->setContentSecurityPolicy($policy); $this->assertEquals($expected, $this->appSettingsController->viewApps()); @@ -195,7 +200,7 @@ class AppSettingsControllerTest extends TestCase { $policy = new ContentSecurityPolicy(); $policy->addAllowedImageDomain('https://usercontent.apps.nextcloud.com'); - $expected = new TemplateResponse('settings', 'apps', ['category' => 'enabled', 'appstoreEnabled' => false], 'user'); + $expected = new TemplateResponse('settings', 'apps', ['category' => 'installed', 'appstoreEnabled' => false], 'user'); $expected->setContentSecurityPolicy($policy); $this->assertEquals($expected, $this->appSettingsController->viewApps()); |