diff options
Diffstat (limited to 'tests/lib/Group/MetaDataTest.php')
-rw-r--r-- | tests/lib/Group/MetaDataTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/Group/MetaDataTest.php b/tests/lib/Group/MetaDataTest.php index 4332a6f036f..ebd9cd79f23 100644 --- a/tests/lib/Group/MetaDataTest.php +++ b/tests/lib/Group/MetaDataTest.php @@ -83,7 +83,7 @@ class MetaDataTest extends \Test\TestCase { $this->groupManager->expects($this->once()) ->method('search') ->with('') - ->will($this->returnValue($groups)); + ->willReturn($groups); list($adminGroups, $ordinaryGroups) = $this->groupMetadata->get(); @@ -103,7 +103,7 @@ class MetaDataTest extends \Test\TestCase { $this->groupManager->expects($this->once()) ->method('search') ->with('') - ->will($this->returnValue($groups)); + ->willReturn($groups); list($adminGroups, $ordinaryGroups) = $this->groupMetadata->get(); @@ -121,7 +121,7 @@ class MetaDataTest extends \Test\TestCase { $this->groupManager->expects($this->once()) ->method('search') ->with('') - ->will($this->returnValue($groups)); + ->willReturn($groups); //two calls, if caching fails call counts for group and groupmanager //are exceeded @@ -137,7 +137,7 @@ class MetaDataTest extends \Test\TestCase { ->expects($this->once()) ->method('search') ->with('Foo') - ->will($this->returnValue(['DummyValue'])); + ->willReturn(['DummyValue']); $expected = ['DummyValue']; $this->assertSame($expected, $this->invokePrivate($this->groupMetadata, 'getGroups', ['Foo'])); |