summaryrefslogtreecommitdiffstats
path: root/apps/settings/tests/Mailer/NewUserMailHelperTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings/tests/Mailer/NewUserMailHelperTest.php')
-rw-r--r--apps/settings/tests/Mailer/NewUserMailHelperTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/settings/tests/Mailer/NewUserMailHelperTest.php b/apps/settings/tests/Mailer/NewUserMailHelperTest.php
index a6371c37a92..35700245c84 100644
--- a/apps/settings/tests/Mailer/NewUserMailHelperTest.php
+++ b/apps/settings/tests/Mailer/NewUserMailHelperTest.php
@@ -84,7 +84,7 @@ class NewUserMailHelperTest extends TestCase {
[]
);
$this->mailer->method('createEMailTemplate')
- ->will($this->returnValue($template));
+ ->willReturn($template);
$this->secureRandom = $this->createMock(ISecureRandom::class);
$this->timeFactory = $this->createMock(ITimeFactory::class);
$this->config = $this->createMock(IConfig::class);
@@ -102,13 +102,13 @@ class NewUserMailHelperTest extends TestCase {
});
$this->crypto = $this->createMock(ICrypto::class);
$this->l10n->method('t')
- ->will($this->returnCallback(function ($text, $parameters = []) {
+ ->willReturnCallback(function ($text, $parameters = []) {
return vsprintf($text, $parameters);
- }));
+ });
$this->l10nFactory->method('get')
- ->will($this->returnCallback(function ($text, $lang) {
+ ->willReturnCallback(function ($text, $lang) {
return $this->l10n;
- }));
+ });
$this->newUserMailHelper = new \OCA\Settings\Mailer\NewUserMailHelper(
$this->defaults,