-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 #31053 from owncloud/email-filter-filename
Filter file name when sending internal mail
- Loading branch information
Showing
2 changed files
with
12 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -260,7 +260,7 @@ public function testSendLinkShareMailException() { | |
} | ||
|
||
public function testSendInternalShareMail() { | ||
$this->setupMailerMock('TestUser shared »welcome.txt« with you', ['[email protected]' => 'Recipient'], false); | ||
$this->setupMailerMock('TestUser shared »<welcome>.txt« with you', ['[email protected]' => 'Recipient'], false); | ||
|
||
/** @var MailNotifications | \PHPUnit_Framework_MockObject_MockObject $mailNotifications */ | ||
$mailNotifications = $this->getMockBuilder('OC\Share\MailNotifications') | ||
|
@@ -278,7 +278,7 @@ public function testSendInternalShareMail() { | |
$mailNotifications->method('getItemSharedWithUser') | ||
->withAnyParameters() | ||
->willReturn([ | ||
['file_target' => '/welcome.txt', 'item_source' => 123], | ||
['file_target' => '/<welcome>.txt', 'item_source' => 123], | ||
]); | ||
|
||
$recipient = $this->getMockBuilder('\OCP\IUser') | ||
|