Fix email client mock
This commit is contained in:
@@ -91,7 +91,11 @@ abstract class Base extends PHPUnit_Framework_TestCase
|
|||||||
$this->container['logger'] = new Logger;
|
$this->container['logger'] = new Logger;
|
||||||
$this->container['logger']->setLogger(new File($this->isWindows() ? 'NUL' : '/dev/null'));
|
$this->container['logger']->setLogger(new File($this->isWindows() ? 'NUL' : '/dev/null'));
|
||||||
$this->container['httpClient'] = new FakeHttpClient;
|
$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
|
$this->container['userNotificationType'] = $this
|
||||||
->getMockBuilder('\Kanboard\Model\UserNotificationType')
|
->getMockBuilder('\Kanboard\Model\UserNotificationType')
|
||||||
|
|||||||
Reference in New Issue
Block a user