test(comments): Fix cast to match typing in ManagerTest

Signed-off-by: Josh <josh.t.richards@gmail.com>
This commit is contained in:
Josh 2026-01-12 11:04:50 -05:00 committed by GitHub
parent f15d811309
commit 2eca305c7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -360,11 +360,11 @@ class ManagerTest extends TestCase {
// 2 comments for 1112 with no read marker
// 1 comment for 1113 before read marker
// 1 comment for 1114 with no read marker
$this->addDatabaseEntry('0', '0', null, null, $fileIds[1]);
$this->addDatabaseEntry('0', '0', null, null, (string)$fileIds[1]);
for ($i = 0; $i < 4; $i++) {
$this->addDatabaseEntry('0', '0', null, null, $fileIds[$i]);
$this->addDatabaseEntry('0', '0', null, null, (string)$fileIds[$i]);
}
$this->addDatabaseEntry('0', '0', (new \DateTime())->modify('-2 days'), null, $fileIds[0]);
$this->addDatabaseEntry('0', '0', (new \DateTime())->modify('-2 days'), null, (string)$fileIds[0]);
/** @var IUser|\PHPUnit\Framework\MockObject\MockObject $user */
$user = $this->createMock(IUser::class);
$user->expects($this->any())