diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-08-18 10:47:49 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-08-23 19:44:04 +0200 |
commit | 9b8ca9ad1f3df5d32df241d8848c8dc92c9a1fc2 (patch) | |
tree | 72aa5edaaa4b3c3ded5931c6914988ac9dce9467 /tests | |
parent | 604c1752845df068a7dd5d168abfbfc04065ac3f (diff) | |
download | nextcloud-server-9b8ca9ad1f3df5d32df241d8848c8dc92c9a1fc2.tar.gz nextcloud-server-9b8ca9ad1f3df5d32df241d8848c8dc92c9a1fc2.zip |
Move findBinaryFinder and isFunctionEnabled away from OC_Helper
findBinaryFinder is now a service that is still private but with some
minor optimization (remove the hasKey check).
isFunctionEnabled is now in OCP\Util
Both function are still keep but all internal usage in nextcloud/server
were migrated to the new usage, so that we can remove it in 26
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/LargeFileHelperGetFileSizeTest.php | 2 | ||||
-rw-r--r-- | tests/lib/Mail/MailerTest.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/LargeFileHelperGetFileSizeTest.php b/tests/lib/LargeFileHelperGetFileSizeTest.php index 3066d48792b..6fa2555b6d0 100644 --- a/tests/lib/LargeFileHelperGetFileSizeTest.php +++ b/tests/lib/LargeFileHelperGetFileSizeTest.php @@ -63,7 +63,7 @@ class LargeFileHelperGetFileSizeTest extends TestCase { if (escapeshellarg('strängé') !== '\'strängé\'') { $this->markTestSkipped('Your escapeshell args removes accents'); } - if (!\OC_Helper::is_function_enabled('exec')) { + if (!\OCP\Util::isFunctionEnabled('exec')) { $this->markTestSkipped( 'The exec() function needs to be enabled for this test.' ); diff --git a/tests/lib/Mail/MailerTest.php b/tests/lib/Mail/MailerTest.php index e96cda26398..4b15a4233fd 100644 --- a/tests/lib/Mail/MailerTest.php +++ b/tests/lib/Mail/MailerTest.php @@ -87,7 +87,7 @@ class MailerTest extends TestCase { ]); $path = \OC_Helper::findBinaryPath('sendmail'); - if ($path === null) { + if ($path === false) { $path = '/usr/sbin/sendmail'; } |