diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-04-24 19:58:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-24 19:58:53 +0200 |
commit | 33946655b9bdc80e177baa09ccc53f0d48846c8b (patch) | |
tree | 3505dfdc88a55cff9dd4861453f9edc3e26ddb58 /apps/dav/tests | |
parent | 09a2845c75f12b09f71d1c553f3a25c52f9da454 (diff) | |
parent | 96bab4f96939af9b881ad6e15d085fb446b6c7a4 (diff) | |
download | nextcloud-server-33946655b9bdc80e177baa09ccc53f0d48846c8b.tar.gz nextcloud-server-33946655b9bdc80e177baa09ccc53f0d48846c8b.zip |
Merge pull request #15141 from nextcloud/fix/noid/regenerate-seen-users-only
fix searching all users in repair regenerate birthday cal reparir job
Diffstat (limited to 'apps/dav/tests')
-rw-r--r-- | apps/dav/tests/unit/Controller/BirthdayCalendarControllerTest.php | 2 | ||||
-rw-r--r-- | apps/dav/tests/unit/Migration/RegenerateBirthdayCalendarsTest.php | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/dav/tests/unit/Controller/BirthdayCalendarControllerTest.php b/apps/dav/tests/unit/Controller/BirthdayCalendarControllerTest.php index 46ed58df4f9..a105daa2608 100644 --- a/apps/dav/tests/unit/Controller/BirthdayCalendarControllerTest.php +++ b/apps/dav/tests/unit/Controller/BirthdayCalendarControllerTest.php @@ -78,7 +78,7 @@ class BirthdayCalendarControllerTest extends TestCase { ->with('dav', 'generateBirthdayCalendar', 'yes'); $this->userManager->expects($this->once()) - ->method('callForAllUsers') + ->method('callForSeenUsers') ->will($this->returnCallback(function($closure) { $user1 = $this->createMock(IUser::class); $user1->method('getUID')->will($this->returnValue('uid1')); diff --git a/apps/dav/tests/unit/Migration/RegenerateBirthdayCalendarsTest.php b/apps/dav/tests/unit/Migration/RegenerateBirthdayCalendarsTest.php index 05e12bbda6e..74af6af88dc 100644 --- a/apps/dav/tests/unit/Migration/RegenerateBirthdayCalendarsTest.php +++ b/apps/dav/tests/unit/Migration/RegenerateBirthdayCalendarsTest.php @@ -76,7 +76,7 @@ class RegenerateBirthdayCalendarsTest extends TestCase { ->with('Adding background jobs to regenerate birthday calendar'); $this->userManager->expects($this->once()) - ->method('callForAllUsers') + ->method('callForSeenUsers') ->will($this->returnCallback(function($closure) { $user1 = $this->createMock(IUser::class); $user1->method('getUID')->will($this->returnValue('uid1')); @@ -128,10 +128,10 @@ class RegenerateBirthdayCalendarsTest extends TestCase { ->with('Repair step already executed'); $this->userManager->expects($this->never()) - ->method('callForAllUsers'); + ->method('callForSeenUsers'); $this->migration->run($output); } -}
\ No newline at end of file +} |