summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-11-24 14:18:47 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2020-11-25 15:03:06 +0100
commit6166e1a157774b7c3c1ee8f304ef96ff2efe3e92 (patch)
tree4edbc6ae63ec8bd1d0982978524f0137e21ab6e2 /apps/dav/tests
parentd4fd61b7c6df367899fc225784d3cea64206a542 (diff)
downloadnextcloud-server-6166e1a157774b7c3c1ee8f304ef96ff2efe3e92.tar.gz
nextcloud-server-6166e1a157774b7c3c1ee8f304ef96ff2efe3e92.zip
Use proper OCP\BackgroundJobs\Job
And typehunt the IJobList Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/dav/tests')
-rw-r--r--apps/dav/tests/unit/BackgroundJob/RefreshWebcalJobTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/tests/unit/BackgroundJob/RefreshWebcalJobTest.php b/apps/dav/tests/unit/BackgroundJob/RefreshWebcalJobTest.php
index f65675bccb3..c4cb52370ae 100644
--- a/apps/dav/tests/unit/BackgroundJob/RefreshWebcalJobTest.php
+++ b/apps/dav/tests/unit/BackgroundJob/RefreshWebcalJobTest.php
@@ -74,6 +74,7 @@ class RefreshWebcalJobTest extends TestCase {
*/
public function testRun(int $lastRun, int $time, bool $process) {
$backgroundJob = new RefreshWebcalJob($this->refreshWebcalService, $this->config, $this->logger, $this->timeFactory);
+ $backgroundJob->setId(42);
$backgroundJob->setArgument([
'principaluri' => 'principals/users/testuser',
@@ -99,8 +100,7 @@ class RefreshWebcalJobTest extends TestCase {
->with('dav', 'calendarSubscriptionRefreshRate', 'P1W')
->willReturn('P1W');
- $this->timeFactory->expects($this->once())
- ->method('getTime')
+ $this->timeFactory->method('getTime')
->willReturn($time);
if ($process) {