From d9909aa5baf68ae9a7acfaaccff9b6b0d3cbbf9e Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Wed, 13 Nov 2024 19:50:27 +0100 Subject: [PATCH] fixup! fix(profile): make sure the app cannot be disabled as it was in core Signed-off-by: skjnldsv --- apps/profile/appinfo/info.xml | 6 +++--- build/integration/features/provisioning-v1.feature | 1 + tests/lib/App/AppManagerTest.php | 1 + tests/lib/AppTest.php | 8 ++++++-- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/apps/profile/appinfo/info.xml b/apps/profile/appinfo/info.xml index 6a192119285e8..293350a768e1e 100644 --- a/apps/profile/appinfo/info.xml +++ b/apps/profile/appinfo/info.xml @@ -1,7 +1,7 @@ @@ -11,7 +11,7 @@ Provides a customisable user profile interface. 1.0.0 agpl - Chris Ng + Nextcloud GmbH Profile social https://github.com/nextcloud/server/issues diff --git a/build/integration/features/provisioning-v1.feature b/build/integration/features/provisioning-v1.feature index 9e281fbd955b1..12498bedd7fed 100644 --- a/build/integration/features/provisioning-v1.feature +++ b/build/integration/features/provisioning-v1.feature @@ -599,6 +599,7 @@ Feature: provisioning | files_trashbin | | files_versions | | lookup_server_connector | + | profile | | provisioning_api | | settings | | sharebymail | diff --git a/tests/lib/App/AppManagerTest.php b/tests/lib/App/AppManagerTest.php index ce531bf71b569..8169c25c1603d 100644 --- a/tests/lib/App/AppManagerTest.php +++ b/tests/lib/App/AppManagerTest.php @@ -605,6 +605,7 @@ public function testGetAppsNeedingUpgrade(): void { 'dav' => ['id' => 'dav'], 'files' => ['id' => 'files'], 'federatedfilesharing' => ['id' => 'federatedfilesharing'], + 'profile' => ['id' => 'profile'], 'provisioning_api' => ['id' => 'provisioning_api'], 'lookup_server_connector' => ['id' => 'lookup_server_connector'], 'test1' => ['id' => 'test1', 'version' => '1.0.1', 'requiremax' => '9.0.0'], diff --git a/tests/lib/AppTest.php b/tests/lib/AppTest.php index 4719773cf68d9..98c3a6ff158b1 100644 --- a/tests/lib/AppTest.php +++ b/tests/lib/AppTest.php @@ -345,6 +345,7 @@ public function appConfigValuesProvider() { 'federatedfilesharing', 'lookup_server_connector', 'oauth2', + 'profile', 'provisioning_api', 'settings', 'theming', @@ -368,6 +369,7 @@ public function appConfigValuesProvider() { 'federatedfilesharing', 'lookup_server_connector', 'oauth2', + 'profile', 'provisioning_api', 'settings', 'theming', @@ -392,6 +394,7 @@ public function appConfigValuesProvider() { 'federatedfilesharing', 'lookup_server_connector', 'oauth2', + 'profile', 'provisioning_api', 'settings', 'theming', @@ -416,6 +419,7 @@ public function appConfigValuesProvider() { 'federatedfilesharing', 'lookup_server_connector', 'oauth2', + 'profile', 'provisioning_api', 'settings', 'theming', @@ -524,11 +528,11 @@ public function testEnabledAppsCache(): void { ); $apps = \OC_App::getEnabledApps(); - $this->assertEquals(['files', 'app3', 'cloud_federation_api', 'dav', 'federatedfilesharing', 'lookup_server_connector', 'oauth2', 'provisioning_api', 'settings', 'theming', 'twofactor_backupcodes', 'viewer', 'workflowengine'], $apps); + $this->assertEquals(['files', 'app3', 'cloud_federation_api', 'dav', 'federatedfilesharing', 'lookup_server_connector', 'oauth2', 'profile', 'provisioning_api', 'settings', 'theming', 'twofactor_backupcodes', 'viewer', 'workflowengine'], $apps); // mock should not be called again here $apps = \OC_App::getEnabledApps(); - $this->assertEquals(['files', 'app3', 'cloud_federation_api', 'dav', 'federatedfilesharing', 'lookup_server_connector', 'oauth2', 'provisioning_api', 'settings', 'theming', 'twofactor_backupcodes', 'viewer', 'workflowengine'], $apps); + $this->assertEquals(['files', 'app3', 'cloud_federation_api', 'dav', 'federatedfilesharing', 'lookup_server_connector', 'oauth2', 'profile', 'provisioning_api', 'settings', 'theming', 'twofactor_backupcodes', 'viewer', 'workflowengine'], $apps); $this->restoreAppConfig(); \OC_User::setUserId(null);