summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2022-09-22 13:20:37 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2022-09-22 17:36:00 +0200
commit359a37fd10d0d8e3e243fbbca965817138127761 (patch)
tree5e98a180dfc8f981c6d20765bc8e6248050f479e
parent079a8c0e0fc5912bf54d563e107e5b51e8a8b48d (diff)
downloadnextcloud-server-359a37fd10d0d8e3e243fbbca965817138127761.tar.gz
nextcloud-server-359a37fd10d0d8e3e243fbbca965817138127761.zip
remove Core Bundle
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r--lib/private/App/AppStore/Bundles/BundleFetcher.php1
-rw-r--r--lib/private/App/AppStore/Bundles/CoreBundle.php42
-rw-r--r--tests/lib/App/AppStore/Bundles/BundleFetcherTest.php6
-rw-r--r--tests/lib/App/AppStore/Bundles/CoreBundleTest.php36
4 files changed, 1 insertions, 84 deletions
diff --git a/lib/private/App/AppStore/Bundles/BundleFetcher.php b/lib/private/App/AppStore/Bundles/BundleFetcher.php
index 7ffe1fa17d7..4745fef5203 100644
--- a/lib/private/App/AppStore/Bundles/BundleFetcher.php
+++ b/lib/private/App/AppStore/Bundles/BundleFetcher.php
@@ -57,7 +57,6 @@ class BundleFetcher {
*/
public function getDefaultInstallationBundle() {
return [
- new CoreBundle($this->l10n),
];
}
diff --git a/lib/private/App/AppStore/Bundles/CoreBundle.php b/lib/private/App/AppStore/Bundles/CoreBundle.php
deleted file mode 100644
index b1b182fd1ac..00000000000
--- a/lib/private/App/AppStore/Bundles/CoreBundle.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-/**
- * @copyright Copyright (c) 2017 Lukas Reschke <lukas@statuscode.ch>
- *
- * @author Lukas Reschke <lukas@statuscode.ch>
- *
- * @license GNU AGPL version 3 or any later version
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-namespace OC\App\AppStore\Bundles;
-
-class CoreBundle extends Bundle {
-
- /**
- * {@inheritDoc}
- */
- public function getName() {
- return 'Core bundle';
- }
-
- /**
- * {@inheritDoc}
- */
- public function getAppIdentifiers() {
- return [
- 'bruteforcesettings',
- ];
- }
-}
diff --git a/tests/lib/App/AppStore/Bundles/BundleFetcherTest.php b/tests/lib/App/AppStore/Bundles/BundleFetcherTest.php
index 55534cae699..daec97255ca 100644
--- a/tests/lib/App/AppStore/Bundles/BundleFetcherTest.php
+++ b/tests/lib/App/AppStore/Bundles/BundleFetcherTest.php
@@ -22,7 +22,6 @@
namespace Test\App\AppStore\Bundles;
use OC\App\AppStore\Bundles\BundleFetcher;
-use OC\App\AppStore\Bundles\CoreBundle;
use OC\App\AppStore\Bundles\EducationBundle;
use OC\App\AppStore\Bundles\EnterpriseBundle;
use OC\App\AppStore\Bundles\GroupwareBundle;
@@ -59,15 +58,12 @@ class BundleFetcherTest extends TestCase {
}
public function testGetDefaultInstallationBundle() {
- $expected = [
- new CoreBundle($this->l10n),
- ];
+ $expected = [];
$this->assertEquals($expected, $this->bundleFetcher->getDefaultInstallationBundle());
}
public function testGetBundleByIdentifier() {
$this->assertEquals(new EnterpriseBundle($this->l10n), $this->bundleFetcher->getBundleByIdentifier('EnterpriseBundle'));
- $this->assertEquals(new CoreBundle($this->l10n), $this->bundleFetcher->getBundleByIdentifier('CoreBundle'));
$this->assertEquals(new GroupwareBundle($this->l10n), $this->bundleFetcher->getBundleByIdentifier('GroupwareBundle'));
}
diff --git a/tests/lib/App/AppStore/Bundles/CoreBundleTest.php b/tests/lib/App/AppStore/Bundles/CoreBundleTest.php
deleted file mode 100644
index 2ace537b938..00000000000
--- a/tests/lib/App/AppStore/Bundles/CoreBundleTest.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-/**
- * @copyright Copyright (c) 2017 Lukas Reschke <lukas@statuscode.ch>
- *
- * @license GNU AGPL version 3 or any later version
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-
-namespace Test\App\AppStore\Bundles;
-
-use OC\App\AppStore\Bundles\CoreBundle;
-
-class CoreBundleTest extends BundleBase {
- protected function setUp(): void {
- parent::setUp();
- $this->bundle = new CoreBundle($this->l10n);
- $this->bundleIdentifier = 'CoreBundle';
- $this->bundleName = 'Core bundle';
- $this->bundleAppIds = [
- 'bruteforcesettings',
- ];
- }
-}