summaryrefslogtreecommitdiffstats
path: root/tests/lib/Calendar/Room/ManagerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Calendar/Room/ManagerTest.php')
-rw-r--r--tests/lib/Calendar/Room/ManagerTest.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/lib/Calendar/Room/ManagerTest.php b/tests/lib/Calendar/Room/ManagerTest.php
index 56f05544e29..b01d16945ad 100644
--- a/tests/lib/Calendar/Room/ManagerTest.php
+++ b/tests/lib/Calendar/Room/ManagerTest.php
@@ -45,18 +45,18 @@ class ManagerTest extends TestCase {
public function testRegisterUnregisterBackend() {
$backend1 = $this->createMock(IBackend::class);
- $backend1->method('getBackendIdentifier')->will($this->returnValue('backend_1'));
+ $backend1->method('getBackendIdentifier')->willReturn('backend_1');
$this->server->expects($this->at(0))
->method('query')
->with('calendar_room_backend1')
- ->will($this->returnValue($backend1));
+ ->willReturn($backend1);
$backend2 = $this->createMock(IBackend::class);
- $backend2->method('getBackendIdentifier')->will($this->returnValue('backend_2'));
+ $backend2->method('getBackendIdentifier')->willReturn('backend_2');
$this->server->expects($this->at(1))
->method('query')
->with('calendar_room_backend2')
- ->will($this->returnValue($backend2));
+ ->willReturn($backend2);
$this->manager->registerBackend('calendar_room_backend1');
$this->manager->registerBackend('calendar_room_backend2');
@@ -74,18 +74,18 @@ class ManagerTest extends TestCase {
public function testGetBackend() {
$backend1 = $this->createMock(IBackend::class);
- $backend1->method('getBackendIdentifier')->will($this->returnValue('backend_1'));
+ $backend1->method('getBackendIdentifier')->willReturn('backend_1');
$this->server->expects($this->at(0))
->method('query')
->with('calendar_room_backend1')
- ->will($this->returnValue($backend1));
+ ->willReturn($backend1);
$backend2 = $this->createMock(IBackend::class);
- $backend2->method('getBackendIdentifier')->will($this->returnValue('backend_2'));
+ $backend2->method('getBackendIdentifier')->willReturn('backend_2');
$this->server->expects($this->at(1))
->method('query')
->with('calendar_room_backend2')
- ->will($this->returnValue($backend2));
+ ->willReturn($backend2);
$this->manager->registerBackend('calendar_room_backend1');
$this->manager->registerBackend('calendar_room_backend2');
@@ -96,18 +96,18 @@ class ManagerTest extends TestCase {
public function testClear() {
$backend1 = $this->createMock(IBackend::class);
- $backend1->method('getBackendIdentifier')->will($this->returnValue('backend_1'));
+ $backend1->method('getBackendIdentifier')->willReturn('backend_1');
$this->server->expects($this->at(0))
->method('query')
->with('calendar_room_backend1')
- ->will($this->returnValue($backend1));
+ ->willReturn($backend1);
$backend2 = $this->createMock(IBackend::class);
- $backend2->method('getBackendIdentifier')->will($this->returnValue('backend_2'));
+ $backend2->method('getBackendIdentifier')->willReturn('backend_2');
$this->server->expects($this->at(1))
->method('query')
->with('calendar_room_backend2')
- ->will($this->returnValue($backend2));
+ ->willReturn($backend2);
$this->manager->registerBackend('calendar_room_backend1');
$this->manager->registerBackend('calendar_room_backend2');