diff options
author | Robin Appelman <robin@icewind.nl> | 2024-07-19 18:03:54 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2024-07-23 14:41:13 +0200 |
commit | 16c184e2cb1110797935107987d0fc9536031df8 (patch) | |
tree | 5cb0794d4fcd13b0996bb3d2720c4746d195d796 /tests | |
parent | f58a88b11c7fdadaa1296d7e26c70dbc99d80869 (diff) | |
download | nextcloud-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.php | 4 |
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([]); |