Fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
0cef938299
commit
0c500e460f
4 changed files with 9 additions and 5 deletions
|
@ -555,7 +555,7 @@ EOF;
|
|||
*
|
||||
* @since 12.0.0
|
||||
*/
|
||||
public function addBodyButton(string $text, string $url, string $plainText = '') {
|
||||
public function addBodyButton(string $text, string $url, $plainText = '') {
|
||||
if ($this->footerAdded) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -132,7 +132,7 @@ interface IEMailTemplate {
|
|||
*
|
||||
* @since 12.0.0
|
||||
*/
|
||||
public function addBodyButton(string $text, string $url, string $plainText = '');
|
||||
public function addBodyButton(string $text, string $url, $plainText = '');
|
||||
|
||||
/**
|
||||
* Adds a logo and a text to the footer. <br> in the text will be replaced by new lines in the plain text email
|
||||
|
|
|
@ -133,6 +133,10 @@ class MailerTest extends TestCase {
|
|||
}
|
||||
|
||||
public function testCreateEMailTemplate() {
|
||||
$this->config->method('getSystemValue')
|
||||
->with('mail_template_class', '')
|
||||
->willReturnArgument(1);
|
||||
|
||||
$this->assertSame(EMailTemplate::class, get_class($this->mailer->createEMailTemplate('tests.MailerTest')));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@ class MessageTest extends TestCase {
|
|||
);
|
||||
}
|
||||
|
||||
function setUp() {
|
||||
public function setUp() {
|
||||
parent::setUp();
|
||||
|
||||
$this->swiftMessage = $this->getMockBuilder('\Swift_Message')
|
||||
|
@ -79,9 +79,9 @@ class MessageTest extends TestCase {
|
|||
$this->swiftMessage
|
||||
->expects($this->once())
|
||||
->method('getReplyTo')
|
||||
->will($this->returnValue(['lukas@owncloud.com']));
|
||||
->willReturn('lukas@owncloud.com');
|
||||
|
||||
$this->assertSame(['lukas@owncloud.com'], $this->message->getReplyTo());
|
||||
$this->assertSame('lukas@owncloud.com', $this->message->getReplyTo());
|
||||
}
|
||||
|
||||
public function testSetTo() {
|
||||
|
|
Loading…
Reference in a new issue