aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2020-03-26 09:25:19 +0100
committerGitHub <noreply@github.com>2020-03-26 09:25:19 +0100
commit25ab122245da1456701d93d7178f851b660c3cf7 (patch)
tree0365dc30da369f4fe033186302511aab6687a68b /apps/workflowengine
parentb3af054d73801267590e77ae137c56ea0086d6a0 (diff)
parent2ee65f177e4f7e09ad2287f14d564e7068d322fb (diff)
downloadnextcloud-server-25ab122245da1456701d93d7178f851b660c3cf7.tar.gz
nextcloud-server-25ab122245da1456701d93d7178f851b660c3cf7.zip
Merge pull request #20172 from nextcloud/techdebt/phpunit-short-return
Use the shorter phpunit syntax for mocked return values
Diffstat (limited to 'apps/workflowengine')
-rw-r--r--apps/workflowengine/tests/ManagerTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/workflowengine/tests/ManagerTest.php b/apps/workflowengine/tests/ManagerTest.php
index 28001a05a92..aa6f4baef89 100644
--- a/apps/workflowengine/tests/ManagerTest.php
+++ b/apps/workflowengine/tests/ManagerTest.php
@@ -79,9 +79,9 @@ class ManagerTest extends TestCase {
/** @var IL10N|MockObject $l */
$this->l = $this->createMock(IL10N::class);
$this->l->method('t')
- ->will($this->returnCallback(function($text, $parameters = []) {
+ ->willReturnCallback(function($text, $parameters = []) {
return vsprintf($text, $parameters);
- }));
+ });
$this->legacyDispatcher = $this->createMock(EventDispatcherInterface::class);
$this->logger = $this->createMock(ILogger::class);