diff options
author | Joas Schilling <coding@schilljs.com> | 2017-09-15 11:01:21 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-10-18 15:12:03 +0200 |
commit | 3119fd41ceebbdab33c4dd86ce0b60b4dc9010e9 (patch) | |
tree | f79efab1f9506a452e54fd32e201234410969b1b /tests/Settings | |
parent | c9af36a9ab05e808df526a2054c30364ee02241c (diff) | |
download | nextcloud-server-3119fd41ceebbdab33c4dd86ce0b60b4dc9010e9.tar.gz nextcloud-server-3119fd41ceebbdab33c4dd86ce0b60b4dc9010e9.zip |
Set the data from the template
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/Settings')
-rw-r--r-- | tests/Settings/Mailer/NewUserMailHelperTest.php | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/tests/Settings/Mailer/NewUserMailHelperTest.php b/tests/Settings/Mailer/NewUserMailHelperTest.php index 1af1bed808c..9fd90561127 100644 --- a/tests/Settings/Mailer/NewUserMailHelperTest.php +++ b/tests/Settings/Mailer/NewUserMailHelperTest.php @@ -620,26 +620,18 @@ EOF; ->expects($this->at(0)) ->method('setTo') ->with(['recipient@example.com' => 'John Doe']); - $this->defaults - ->expects($this->exactly(2)) - ->method('getName') - ->willReturn('TestCloud'); $message ->expects($this->at(1)) - ->method('setSubject') - ->with('Your TestCloud account was created'); - $message - ->expects($this->at(2)) - ->method('setHtmlBody') - ->with($emailTemplate->renderHtml()); - $message - ->expects($this->at(3)) - ->method('setPlainBody') - ->with($emailTemplate->renderText()); - $message - ->expects($this->at(4)) ->method('setFrom') ->with(['no-reply@nextcloud.com' => 'TestCloud']); + $message + ->expects($this->at(2)) + ->method('useTemplate') + ->with($emailTemplate); + $this->defaults + ->expects($this->exactly(1)) + ->method('getName') + ->willReturn('TestCloud'); $this->mailer ->expects($this->once()) ->method('createMessage') |