diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-01-29 22:21:44 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-01-29 22:21:44 -0500 |
commit | 04d8c6532c441c4ba4699020374ffab85685082d (patch) | |
tree | 10728c25eea222cd5d5fb042089a0a325b455201 /tests/units/Base.php | |
parent | dae0c7391ab8308506bddc5fff76414a3bb87ce4 (diff) |
Fix email client mock
Diffstat (limited to 'tests/units/Base.php')
-rw-r--r-- | tests/units/Base.php | 6 |
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') |