summaryrefslogtreecommitdiff
path: root/tests/units/Base.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-29 22:21:44 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-29 22:21:44 -0500
commit04d8c6532c441c4ba4699020374ffab85685082d (patch)
tree10728c25eea222cd5d5fb042089a0a325b455201 /tests/units/Base.php
parentdae0c7391ab8308506bddc5fff76414a3bb87ce4 (diff)
Fix email client mock
Diffstat (limited to 'tests/units/Base.php')
-rw-r--r--tests/units/Base.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/units/Base.php b/tests/units/Base.php
index 4b54cdb0..7ac83289 100644
--- a/tests/units/Base.php
+++ b/tests/units/Base.php
@@ -91,7 +91,11 @@ abstract class Base extends PHPUnit_Framework_TestCase
$this->container['logger'] = new Logger;
$this->container['logger']->setLogger(new File($this->isWindows() ? 'NUL' : '/dev/null'));
$this->container['httpClient'] = new FakeHttpClient;
- $this->container['emailClient'] = $this->getMockBuilder('EmailClient')->setMethods(array('send'))->getMock();
+ $this->container['emailClient'] = $this
+ ->getMockBuilder('\Kanboard\Core\Mail\Client')
+ ->setConstructorArgs(array($this->container))
+ ->setMethods(array('send'))
+ ->getMock();
$this->container['userNotificationType'] = $this
->getMockBuilder('\Kanboard\Model\UserNotificationType')