aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_test/mock
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2019-05-19 10:48:22 +0200
committerGitHub <noreply@github.com>2019-05-19 10:48:22 +0200
commitb8c09b6854c4210a9c9fef089a48f5320420d469 (patch)
tree75380e7d4dce97ebd1c8560e18cc26535c48a232 /_test/mock
parent749c002394774d4323466fa0c9370aa913b1849d (diff)
parent451969ab7559b14e82720d165019a94010752965 (diff)
downloaddokuwiki-b8c09b6854c4210a9c9fef089a48f5320420d469.tar.gz
dokuwiki-b8c09b6854c4210a9c9fef089a48f5320420d469.zip
Merge pull request #2759 from splitbrain/refactorSubscriptions
Refactor subscriptions
Diffstat (limited to '_test/mock')
-rw-r--r--_test/mock/MailerMock.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/_test/mock/MailerMock.php b/_test/mock/MailerMock.php
new file mode 100644
index 000000000..9d93bc25a
--- /dev/null
+++ b/_test/mock/MailerMock.php
@@ -0,0 +1,16 @@
+<?php
+
+namespace dokuwiki\test\mock;
+
+class MailerMock extends \Mailer
+{
+
+ public $mails = [];
+
+ public function send()
+ {
+ $this->mails[] = $this->headers;
+ return true;
+ }
+
+}