Skip to content

Commit d9a7e08

Browse files
committed
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 <[email protected]>
1 parent cc873cc commit d9a7e08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/lib/Files/ViewTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ public function xtestLongPath() {
809809
*/
810810
$folderName = 'abcdefghijklmnopqrstuvwxyz012345678901234567890123456789';
811811
$tmpdirLength = strlen(Server::get(ITempManager::class)->getTemporaryFolder());
812-
if (\OC_Util::runningOnMac()) {
812+
if (PHP_OS_FAMILY === 'Darwin') { // macOS
813813
$depth = ((1024 - $tmpdirLength) / 57);
814814
} else {
815815
$depth = ((4000 - $tmpdirLength) / 57);

0 commit comments

Comments
 (0)