From d9a7e0855c862352727896743ce9a19dbf509e83 Mon Sep 17 00:00:00 2001 From: Josh Date: Tue, 2 Dec 2025 18:48:31 -0500 Subject: [PATCH] refactor(tests): use OS constant over function Use PHP's newer PHP_OS_FAMILY constant. - Allows us to drop a legacy OC_Util method. - This test isn't even enabled at the moment. Signed-off-by: Josh --- tests/lib/Files/ViewTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lib/Files/ViewTest.php b/tests/lib/Files/ViewTest.php index b9f6b1a7373..0ff5d010c0d 100644 --- a/tests/lib/Files/ViewTest.php +++ b/tests/lib/Files/ViewTest.php @@ -809,7 +809,7 @@ class ViewTest extends \Test\TestCase { */ $folderName = 'abcdefghijklmnopqrstuvwxyz012345678901234567890123456789'; $tmpdirLength = strlen(Server::get(ITempManager::class)->getTemporaryFolder()); - if (\OC_Util::runningOnMac()) { + if (PHP_OS_FAMILY === 'Darwin') { // macOS $depth = ((1024 - $tmpdirLength) / 57); } else { $depth = ((4000 - $tmpdirLength) / 57);