-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5518 from nextcloud/enh/getDisplayName
- Loading branch information
Showing
3 changed files
with
22 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,11 +120,9 @@ public function testSendConfirmationEmail(): void { | |
$this->userManager->expects(self::once()) | ||
->method('get') | ||
->willReturn($this->createConfiguredMock(IUser::class, [ | ||
'getEmailAddress' => '[email protected]' | ||
'getEmailAddress' => '[email protected]', | ||
'getDisplayName' => 'Test Test' | ||
])); | ||
$this->userManager->expects(self::exactly(3)) | ||
->method('getDisplayName') | ||
->willReturn('Test Test'); | ||
$mailMessage = $this->createMock(IMessage::class); | ||
$this->mailer->expects(self::once()) | ||
->method('createMessage') | ||
|
@@ -210,9 +208,6 @@ public function testSendConfirmationEmailMailerException(): void { | |
'getEmailAddress' => '[email protected]', | ||
'getDisplayName' => 'Test Test' | ||
])); | ||
$this->userManager->expects(self::exactly(3)) | ||
->method('getDisplayName') | ||
->willReturn('Test Test'); | ||
$mailMessage = $this->createMock(IMessage::class); | ||
$this->mailer->expects(self::once()) | ||
->method('createMessage') | ||
|
@@ -280,11 +275,9 @@ public function testSendConfirmationEmailMailerFailed(): void { | |
$this->userManager->expects(self::once()) | ||
->method('get') | ||
->willReturn($this->createConfiguredMock(IUser::class, [ | ||
'getEmailAddress' => '[email protected]' | ||
'getEmailAddress' => '[email protected]', | ||
'getDisplayName' => 'Test Test' | ||
])); | ||
$this->userManager->expects(self::exactly(3)) | ||
->method('getDisplayName') | ||
->willReturn('Test Test'); | ||
$mailMessage = $this->createMock(IMessage::class); | ||
$this->mailer->expects(self::once()) | ||
->method('createMessage') | ||
|
@@ -356,11 +349,9 @@ public function testSendBookingInformationEmail(): void { | |
$this->userManager->expects(self::once()) | ||
->method('get') | ||
->willReturn($this->createConfiguredMock(IUser::class, [ | ||
'getEmailAddress' => '[email protected]' | ||
'getEmailAddress' => '[email protected]', | ||
'getDisplayName' => 'Test Test' | ||
])); | ||
$this->userManager->expects(self::exactly(3)) | ||
->method('getDisplayName') | ||
->willReturn('Test Test'); | ||
$mailMessage = $this->createMock(IMessage::class); | ||
$this->mailer->expects(self::once()) | ||
->method('createMessage') | ||
|
@@ -431,11 +422,9 @@ public function testSendBookingInformationEmailFailed(): void { | |
$this->userManager->expects(self::once()) | ||
->method('get') | ||
->willReturn($this->createConfiguredMock(IUser::class, [ | ||
'getEmailAddress' => '[email protected]' | ||
'getEmailAddress' => '[email protected]', | ||
'getDisplayName' => 'Test Test' | ||
])); | ||
$this->userManager->expects(self::exactly(3)) | ||
->method('getDisplayName') | ||
->willReturn('Test Test'); | ||
$mailMessage = $this->createMock(IMessage::class); | ||
$this->mailer->expects(self::once()) | ||
->method('createMessage') | ||
|