aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-07-19 18:03:54 +0200
committerRobin Appelman <robin@icewind.nl>2024-07-23 14:41:13 +0200
commit16c184e2cb1110797935107987d0fc9536031df8 (patch)
tree5cb0794d4fcd13b0996bb3d2720c4746d195d796 /tests
parentf58a88b11c7fdadaa1296d7e26c70dbc99d80869 (diff)
downloadnextcloud-server-16c184e2cb1110797935107987d0fc9536031df8.tar.gz
nextcloud-server-16c184e2cb1110797935107987d0fc9536031df8.zip
fix: cast to bigint on postgresql
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Preview/BackgroundCleanupJobTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/Preview/BackgroundCleanupJobTest.php b/tests/lib/Preview/BackgroundCleanupJobTest.php
index a221829b712..c07ec42b36b 100644
--- a/tests/lib/Preview/BackgroundCleanupJobTest.php
+++ b/tests/lib/Preview/BackgroundCleanupJobTest.php
@@ -180,9 +180,11 @@ class BackgroundCleanupJobTest extends \Test\TestCase {
$f1->newFile('foo.jpg', 'foo');
$f2 = $appdata->newFolder('123456782');
$f2->newFile('foo.jpg', 'foo');
+ $f2 = $appdata->newFolder((string)PHP_INT_MAX - 1);
+ $f2->newFile('foo.jpg', 'foo');
$appdata = \OC::$server->getAppDataDir('preview');
- $this->assertSame(2, count($appdata->getDirectoryListing()));
+ $this->assertSame(3, count($appdata->getDirectoryListing()));
$job = new BackgroundCleanupJob($this->timeFactory, $this->connection, $this->getRoot(), $this->mimeTypeLoader, true);
$job->run([]);