summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/Migration/RefreshWebcalJobRegistrarTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/tests/unit/Migration/RefreshWebcalJobRegistrarTest.php')
-rw-r--r--apps/dav/tests/unit/Migration/RefreshWebcalJobRegistrarTest.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/apps/dav/tests/unit/Migration/RefreshWebcalJobRegistrarTest.php b/apps/dav/tests/unit/Migration/RefreshWebcalJobRegistrarTest.php
index ad56a0dd715..dc6c64f2abb 100644
--- a/apps/dav/tests/unit/Migration/RefreshWebcalJobRegistrarTest.php
+++ b/apps/dav/tests/unit/Migration/RefreshWebcalJobRegistrarTest.php
@@ -64,45 +64,45 @@ class RefreshWebcalJobRegistrarTest extends TestCase {
$this->db->expects($this->once())
->method('getQueryBuilder')
- ->will($this->returnValue($queryBuilder));
+ ->willReturn($queryBuilder);
$queryBuilder->expects($this->at(0))
->method('select')
->with(['principaluri', 'uri'])
- ->will($this->returnValue($queryBuilder));
+ ->willReturn($queryBuilder);
$queryBuilder->expects($this->at(1))
->method('from')
->with('calendarsubscriptions')
- ->will($this->returnValue($queryBuilder));
+ ->willReturn($queryBuilder);
$queryBuilder->expects($this->at(2))
->method('execute')
- ->will($this->returnValue($statement));
+ ->willReturn($statement);
$statement->expects($this->at(0))
->method('fetch')
->with(\PDO::FETCH_ASSOC)
- ->will($this->returnValue([
+ ->willReturn([
'principaluri' => 'foo1',
'uri' => 'bar1',
- ]));
+ ]);
$statement->expects($this->at(1))
->method('fetch')
->with(\PDO::FETCH_ASSOC)
- ->will($this->returnValue([
+ ->willReturn([
'principaluri' => 'foo2',
'uri' => 'bar2',
- ]));
+ ]);
$statement->expects($this->at(2))
->method('fetch')
->with(\PDO::FETCH_ASSOC)
- ->will($this->returnValue([
+ ->willReturn([
'principaluri' => 'foo3',
'uri' => 'bar3',
- ]));
+ ]);
$statement->expects($this->at(0))
->method('fetch')
->with(\PDO::FETCH_ASSOC)
- ->will($this->returnValue(null));
+ ->willReturn(null);
$this->jobList->expects($this->at(0))
->method('has')
@@ -110,7 +110,7 @@ class RefreshWebcalJobRegistrarTest extends TestCase {
'principaluri' => 'foo1',
'uri' => 'bar1',
])
- ->will($this->returnValue(false));
+ ->willReturn(false);
$this->jobList->expects($this->at(1))
->method('add')
->with(RefreshWebcalJob::class, [
@@ -123,14 +123,14 @@ class RefreshWebcalJobRegistrarTest extends TestCase {
'principaluri' => 'foo2',
'uri' => 'bar2',
])
- ->will($this->returnValue(true));
+ ->willReturn(true);
$this->jobList->expects($this->at(3))
->method('has')
->with(RefreshWebcalJob::class, [
'principaluri' => 'foo3',
'uri' => 'bar3',
])
- ->will($this->returnValue(false));
+ ->willReturn(false);
$this->jobList->expects($this->at(4))
->method('add')
->with(RefreshWebcalJob::class, [