diff options
author | Georg Ehrke <developer@georgehrke.com> | 2020-09-02 11:49:14 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2020-09-07 09:22:34 +0200 |
commit | a352a7c7f38d7b1e34caafbbd53ef1e2c28c1caa (patch) | |
tree | 5bbd84d6880b4fde2593fd82cfff5925f8e5ca81 /apps/user_status/tests | |
parent | 16e1d1cb12229270d61d89dfda93399d056d456c (diff) | |
download | nextcloud-server-a352a7c7f38d7b1e34caafbbd53ef1e2c28c1caa.tar.gz nextcloud-server-a352a7c7f38d7b1e34caafbbd53ef1e2c28c1caa.zip |
Introduce consts for statuses
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/user_status/tests')
-rw-r--r-- | apps/user_status/tests/Unit/BackgroundJob/ClearOldStatusesBackgroundJobTest.php | 2 | ||||
-rw-r--r-- | apps/user_status/tests/Unit/Db/UserStatusMapperTest.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_status/tests/Unit/BackgroundJob/ClearOldStatusesBackgroundJobTest.php b/apps/user_status/tests/Unit/BackgroundJob/ClearOldStatusesBackgroundJobTest.php index 6c5f15d47e9..a89d0e270fa 100644 --- a/apps/user_status/tests/Unit/BackgroundJob/ClearOldStatusesBackgroundJobTest.php +++ b/apps/user_status/tests/Unit/BackgroundJob/ClearOldStatusesBackgroundJobTest.php @@ -52,7 +52,7 @@ class ClearOldStatusesBackgroundJobTest extends TestCase { public function testRun() { $this->mapper->expects($this->once()) - ->method('clearOlderThan') + ->method('clearMessagesOlderThan') ->with(1337); $this->time->method('getTime') diff --git a/apps/user_status/tests/Unit/Db/UserStatusMapperTest.php b/apps/user_status/tests/Unit/Db/UserStatusMapperTest.php index bf4c911c812..de05d62c227 100644 --- a/apps/user_status/tests/Unit/Db/UserStatusMapperTest.php +++ b/apps/user_status/tests/Unit/Db/UserStatusMapperTest.php @@ -155,7 +155,7 @@ class UserStatusMapperTest extends TestCase { public function testClearOlderThan(): void { $this->insertSampleStatuses(); - $this->mapper->clearOlderThan(55000); + $this->mapper->clearMessagesOlderThan(55000); $allStatuses = $this->mapper->findAll(); $this->assertCount(3, $allStatuses); |