diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-03-26 00:21:27 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-03-26 00:21:27 +0300 |
commit | 2ee65f177e4f7e09ad2287f14d564e7068d322fb (patch) | |
tree | 39075e87ea7927e20e8956824cb7c49bf626b178 /apps/dav/tests/unit/CalDAV/CalDavBackendTest.php | |
parent | 3cf321fdfc4235a87015a9af2f59c63220016c65 (diff) |
Use the shorter phpunit syntax for mocked return values
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/dav/tests/unit/CalDAV/CalDavBackendTest.php')
-rw-r--r-- | apps/dav/tests/unit/CalDAV/CalDavBackendTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php b/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php index 8ac4961f19f..257c6665dfe 100644 --- a/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php +++ b/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php @@ -130,9 +130,9 @@ class CalDavBackendTest extends AbstractCalDavBackend { $l10n ->expects($this->any()) ->method('t') - ->will($this->returnCallback(function ($text, $parameters = array()) { + ->willReturnCallback(function ($text, $parameters = array()) { return vsprintf($text, $parameters); - })); + }); $config = $this->createMock(IConfig::class); |