summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/CardDAV
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/tests/unit/CardDAV')
-rw-r--r--apps/dav/tests/unit/CardDAV/BirthdayServiceTest.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/dav/tests/unit/CardDAV/BirthdayServiceTest.php b/apps/dav/tests/unit/CardDAV/BirthdayServiceTest.php
index 9962cf4ca06..e38bd1810a8 100644
--- a/apps/dav/tests/unit/CardDAV/BirthdayServiceTest.php
+++ b/apps/dav/tests/unit/CardDAV/BirthdayServiceTest.php
@@ -110,7 +110,7 @@ class BirthdayServiceTest extends TestCase {
$this->config->expects($this->once())
->method('getAppValue')
->with('dav', 'generateBirthdayCalendar', 'yes')
- ->will($this->returnValue('no'));
+ ->willReturn('no');
$this->cardDav->expects($this->never())->method('getAddressBookById');
@@ -121,12 +121,12 @@ class BirthdayServiceTest extends TestCase {
$this->config->expects($this->once())
->method('getAppValue')
->with('dav', 'generateBirthdayCalendar', 'yes')
- ->will($this->returnValue('yes'));
+ ->willReturn('yes');
$this->config->expects($this->once())
->method('getUserValue')
->with('user01', 'dav', 'generateBirthdayCalendar', 'yes')
- ->will($this->returnValue('no'));
+ ->willReturn('no');
$this->cardDav->expects($this->once())->method('getAddressBookById')
->with(666)
@@ -145,12 +145,12 @@ class BirthdayServiceTest extends TestCase {
$this->config->expects($this->once())
->method('getAppValue')
->with('dav', 'generateBirthdayCalendar', 'yes')
- ->will($this->returnValue('yes'));
+ ->willReturn('yes');
$this->config->expects($this->once())
->method('getUserValue')
->with('user01', 'dav', 'generateBirthdayCalendar', 'yes')
- ->will($this->returnValue('yes'));
+ ->willReturn('yes');
$this->cardDav->expects($this->once())->method('getAddressBookById')
->with(666)
@@ -175,7 +175,7 @@ class BirthdayServiceTest extends TestCase {
$this->config->expects($this->once())
->method('getAppValue')
->with('dav', 'generateBirthdayCalendar', 'yes')
- ->will($this->returnValue('no'));
+ ->willReturn('no');
$this->cardDav->expects($this->never())->method('getAddressBookById');
@@ -191,12 +191,12 @@ class BirthdayServiceTest extends TestCase {
$this->config->expects($this->once())
->method('getAppValue')
->with('dav', 'generateBirthdayCalendar', 'yes')
- ->will($this->returnValue('yes'));
+ ->willReturn('yes');
$this->config->expects($this->once())
->method('getUserValue')
->with('user01', 'dav', 'generateBirthdayCalendar', 'yes')
- ->will($this->returnValue('no'));
+ ->willReturn('no');
$this->cardDav->expects($this->once())->method('getAddressBookById')
->with(666)
@@ -223,12 +223,12 @@ class BirthdayServiceTest extends TestCase {
$this->config->expects($this->once())
->method('getAppValue')
->with('dav', 'generateBirthdayCalendar', 'yes')
- ->will($this->returnValue('yes'));
+ ->willReturn('yes');
$this->config->expects($this->once())
->method('getUserValue')
->with('user01', 'dav', 'generateBirthdayCalendar', 'yes')
- ->will($this->returnValue('yes'));
+ ->willReturn('yes');
$this->cardDav->expects($this->once())->method('getAddressBookById')
->with(666)