aboutsummaryrefslogtreecommitdiffstats
path: root/tests/enable_all.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/enable_all.php')
-rw-r--r--tests/enable_all.php34
1 files changed, 15 insertions, 19 deletions
diff --git a/tests/enable_all.php b/tests/enable_all.php
index c494f3e0d55..85e5f3b9247 100644
--- a/tests/enable_all.php
+++ b/tests/enable_all.php
@@ -1,27 +1,23 @@
<?php
+
/**
- * Copyright (c) 2012 Thomas Müller <thomas.mueller@tmit.eu>
- * This file is licensed under the Affero General Public License version 3 or
- * later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2016-2025 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2012-2016 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
-require_once __DIR__.'/../lib/base.php';
+require_once __DIR__ . '/../lib/base.php';
function enableApp($app) {
- try {
- (new \OC_App())->enable($app);
- } catch (Exception $e) {
- echo $e;
- }
+ (new \OC_App())->enable($app);
+ echo "Enabled application {$app}\n";
}
-enableApp('files_sharing');
-enableApp('files_trashbin');
-enableApp('encryption');
-enableApp('user_ldap');
-enableApp('files_versions');
-enableApp('provisioning_api');
-enableApp('federation');
-enableApp('federatedfilesharing');
-enableApp('admin_audit');
+foreach (new \DirectoryIterator(__DIR__ . '/../apps/') as $file) {
+ if ($file->isDot()) {
+ continue;
+ }
+ if (!file_exists($file->getPathname() . '/.git')) {
+ enableApp($file->getFilename());
+ }
+}