diff options
author | Vitor Mattos <vitor@php.rio> | 2022-07-25 11:30:20 -0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2022-07-25 11:30:20 -0300 |
commit | 7a0648757ae57898af29d8cff403086432fa2ba5 (patch) | |
tree | 27f5505c6eff223b2c35a06b0d4bede31f4d4f3c /tests | |
parent | 6206b312b2596fc465e0af994e58953b40e27cee (diff) | |
download | nextcloud-server-7a0648757ae57898af29d8cff403086432fa2ba5.tar.gz nextcloud-server-7a0648757ae57898af29d8cff403086432fa2ba5.zip |
Delete comments that expired now
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Comments/ManagerTest.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/lib/Comments/ManagerTest.php b/tests/lib/Comments/ManagerTest.php index ae91efb8498..1af460e6f1b 100644 --- a/tests/lib/Comments/ManagerTest.php +++ b/tests/lib/Comments/ManagerTest.php @@ -753,6 +753,9 @@ class ManagerTest extends TestCase { $ids[] = $this->addDatabaseEntry(0, 0, null, null, 'file1', new \DateTime('-2 hours')); $ids[] = $this->addDatabaseEntry(0, 0, null, null, 'file2', new \DateTime('-2 hours')); $ids[] = $this->addDatabaseEntry(0, 0, null, null, 'file3', new \DateTime('-2 hours')); + $ids[] = $this->addDatabaseEntry(0, 0, null, null, 'file3', new \DateTime()); + $ids[] = $this->addDatabaseEntry(0, 0, null, null, 'file3', new \DateTime()); + $ids[] = $this->addDatabaseEntry(0, 0, null, null, 'file3', new \DateTime()); $manager = new Manager( $this->connection, @@ -777,7 +780,7 @@ class ManagerTest extends TestCase { } } $this->assertSame($exists, 0); - $this->assertSame($deleted, 3); + $this->assertSame($deleted, 6); // actor info is gone from DB, but when database interaction is alright, // we still expect to get true back |