Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-08-24 14:09:55 +0300
committerGitHub <noreply@github.com>2022-08-24 14:09:55 +0300
commitbd7ab89d2a1ecbebe2e3fcba7bb3a1fc4d06c17b (patch)
treed7be2fddcd0da4baeceb2d25be59a50e3adf85c5 /tests
parent03c8bf70674574146fbdbd86423161a3fe9a5136 (diff)
parent9b8ca9ad1f3df5d32df241d8848c8dc92c9a1fc2 (diff)
Merge pull request #33593 from nextcloud/improve-binary-caching
Move findBinaryFinder and isFunctionEnabled away from OC_Helper
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/LargeFileHelperGetFileSizeTest.php2
-rw-r--r--tests/lib/Mail/MailerTest.php2
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';
}