Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-02-18 14:38:43 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-02-18 17:35:06 +0300
commit42e28633f56d689c21c1c3e3110e867a9c122879 (patch)
tree234f899b5bfde7ab296c92720fc74c1f83b0e99b /tests
parentd9186a2f460df1d6fb170a08650a83fdd4921696 (diff)
Send emails on password reset to the displayname
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/Core/Controller/LostControllerTest.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/Core/Controller/LostControllerTest.php b/tests/Core/Controller/LostControllerTest.php
index 4742e7ae425..fd4e27d47f1 100644
--- a/tests/Core/Controller/LostControllerTest.php
+++ b/tests/Core/Controller/LostControllerTest.php
@@ -94,6 +94,9 @@ class LostControllerTest extends \Test\TestCase {
->method('getUID')
->willReturn('ExistingUser');
$this->existingUser->expects($this->any())
+ ->method('getDisplayName')
+ ->willReturn('Existing User');
+ $this->existingUser->expects($this->any())
->method('isEnabled')
->willReturn(true);
@@ -344,7 +347,7 @@ class LostControllerTest extends \Test\TestCase {
$message
->expects($this->at(0))
->method('setTo')
- ->with(['test@example.com' => 'ExistingUser']);
+ ->with(['test@example.com' => 'Existing User']);
$message
->expects($this->at(1))
->method('setFrom')
@@ -422,7 +425,7 @@ class LostControllerTest extends \Test\TestCase {
$message
->expects($this->at(0))
->method('setTo')
- ->with(['test@example.com' => 'ExistingUser']);
+ ->with(['test@example.com' => 'Existing User']);
$message
->expects($this->at(1))
->method('setFrom')
@@ -494,7 +497,7 @@ class LostControllerTest extends \Test\TestCase {
$message
->expects($this->at(0))
->method('setTo')
- ->with(['test@example.com' => 'ExistingUser']);
+ ->with(['test@example.com' => 'Existing User']);
$message
->expects($this->at(1))
->method('setFrom')