Skip to content

Commit 3378570

Browse files
committed
fixup! test(DeleteOrphanedFilesTest): Improve counting mounts
1 parent 460c565 commit 3378570

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files/tests/Command/DeleteOrphanedFilesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ protected function getMountsCount(int $storageId): int {
7070
$query->select($query->func()->count('*'))
7171
->from('mounts')
7272
->where($query->expr()->eq('storage_id', $query->createNamedParameter($storageId)));
73-
return $query->executeQuery()->fetchOne();
73+
return (int)$query->executeQuery()->fetchOne();
7474
}
7575

7676
/**

0 commit comments

Comments
 (0)