diff options
-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') |