From 04d8c6532c441c4ba4699020374ffab85685082d Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 29 Jan 2016 22:21:44 -0500 Subject: Fix email client mock --- tests/units/Base.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/units/Base.php') 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') -- cgit v1.2.3