summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-09-05 16:08:57 +0200
committerGitHub <noreply@github.com>2017-09-05 16:08:57 +0200
commit15cd21d252b9da706be817df77e4c0643b40327f (patch)
treea38c9c53c35c3a40fbd8ee2bf2c5d05fac586918 /tests
parentcebbb1633aab6c1dfb20be9b49212b934c3b5e68 (diff)
parent4e3c39c1d1210b6216462e8e26db93f65a4767e6 (diff)
downloadnextcloud-server-15cd21d252b9da706be817df77e4c0643b40327f.tar.gz
nextcloud-server-15cd21d252b9da706be817df77e4c0643b40327f.zip
Merge pull request #6358 from nextcloud/fix-mixup-of-id-and-name
Set the meta data before everything
Diffstat (limited to 'tests')
-rw-r--r--tests/Settings/Mailer/NewUserMailHelperTest.php4
-rw-r--r--tests/lib/Mail/EMailTemplateTest.php4
-rw-r--r--tests/lib/Mail/MailerTest.php2
3 files changed, 7 insertions, 3 deletions
diff --git a/tests/Settings/Mailer/NewUserMailHelperTest.php b/tests/Settings/Mailer/NewUserMailHelperTest.php
index 40ba9ee1c21..033847e49f6 100644
--- a/tests/Settings/Mailer/NewUserMailHelperTest.php
+++ b/tests/Settings/Mailer/NewUserMailHelperTest.php
@@ -66,7 +66,9 @@ class NewUserMailHelperTest extends TestCase {
$template = new EMailTemplate(
$this->defaults,
$this->urlGenerator,
- $this->l10n
+ $this->l10n,
+ 'test.TestTemplate',
+ []
);
$this->mailer->method('createEMailTemplate')
->will($this->returnValue($template));
diff --git a/tests/lib/Mail/EMailTemplateTest.php b/tests/lib/Mail/EMailTemplateTest.php
index 08af56453ab..b2d08f7e81b 100644
--- a/tests/lib/Mail/EMailTemplateTest.php
+++ b/tests/lib/Mail/EMailTemplateTest.php
@@ -49,7 +49,9 @@ class EMailTemplateTest extends TestCase {
$this->emailTemplate = new EMailTemplate(
$this->defaults,
$this->urlGenerator,
- $this->l10n
+ $this->l10n,
+ 'test.TestTemplate',
+ []
);
}
diff --git a/tests/lib/Mail/MailerTest.php b/tests/lib/Mail/MailerTest.php
index a7226b9ecd6..f647b966f1f 100644
--- a/tests/lib/Mail/MailerTest.php
+++ b/tests/lib/Mail/MailerTest.php
@@ -133,6 +133,6 @@ class MailerTest extends TestCase {
}
public function testCreateEMailTemplate() {
- $this->assertSame(EMailTemplate::class, get_class($this->mailer->createEMailTemplate()));
+ $this->assertSame(EMailTemplate::class, get_class($this->mailer->createEMailTemplate('tests.MailerTest')));
}
}