diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-10-26 15:06:30 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-11-07 12:14:03 +0100 |
commit | f9770b8ef27cfa503e06708e127a014c3c08828b (patch) | |
tree | 1429e1de158bdc3a2ea41a47f7fcd59ea0222ee9 /apps/settings | |
parent | 3c75075eba3414da7b3c4db9aefe22da074cdcd9 (diff) | |
download | nextcloud-server-f9770b8ef27cfa503e06708e127a014c3c08828b.tar.gz nextcloud-server-f9770b8ef27cfa503e06708e127a014c3c08828b.zip |
Remove duplicate fileinfo PHP module check
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/settings')
-rw-r--r-- | apps/settings/lib/Controller/CheckSetupController.php | 5 | ||||
-rw-r--r-- | apps/settings/tests/Controller/CheckSetupControllerTest.php | 6 |
2 files changed, 0 insertions, 11 deletions
diff --git a/apps/settings/lib/Controller/CheckSetupController.php b/apps/settings/lib/Controller/CheckSetupController.php index dc36e8208e3..4abef63dc7b 100644 --- a/apps/settings/lib/Controller/CheckSetupController.php +++ b/apps/settings/lib/Controller/CheckSetupController.php @@ -562,10 +562,6 @@ Raw output return str_contains($this->config->getSystemValue('dbtype'), 'sqlite'); } - protected function hasFileinfoInstalled(): bool { - return \OC_Util::fileInfoLoaded(); - } - protected function hasWorkingFileLocking(): bool { return !($this->lockingProvider instanceof NoopLockingProvider); } @@ -783,7 +779,6 @@ Raw output public function check() { return new DataResponse( [ - 'hasFileinfoInstalled' => $this->hasFileinfoInstalled(), 'hasWorkingFileLocking' => $this->hasWorkingFileLocking(), 'hasDBFileLocking' => $this->hasDBFileLocking(), 'suggestedOverwriteCliURL' => $this->getSuggestedOverwriteCliURL(), diff --git a/apps/settings/tests/Controller/CheckSetupControllerTest.php b/apps/settings/tests/Controller/CheckSetupControllerTest.php index b08c639f45f..661deddb913 100644 --- a/apps/settings/tests/Controller/CheckSetupControllerTest.php +++ b/apps/settings/tests/Controller/CheckSetupControllerTest.php @@ -189,7 +189,6 @@ class CheckSetupControllerTest extends TestCase { $this->setupCheckManager, ]) ->setMethods([ - 'hasFileinfoInstalled', 'hasWorkingFileLocking', 'hasDBFileLocking', 'getLastCronInfo', @@ -378,10 +377,6 @@ class CheckSetupControllerTest extends TestCase { ->willReturn(false); $this->checkSetupController ->expects($this->once()) - ->method('hasFileinfoInstalled') - ->willReturn(true); - $this->checkSetupController - ->expects($this->once()) ->method('hasWorkingFileLocking') ->willReturn(true); $this->checkSetupController @@ -479,7 +474,6 @@ class CheckSetupControllerTest extends TestCase { $expected = new DataResponse( [ - 'hasFileinfoInstalled' => true, 'hasWorkingFileLocking' => true, 'hasDBFileLocking' => true, 'suggestedOverwriteCliURL' => '', |