diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-10-17 09:51:15 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-10-17 09:51:15 -0400 |
commit | 73a5b9bc75d40a30e7c9674b292957657ac01f63 (patch) | |
tree | ff5bb8a90452a2ff1351c192575e5d241a8b4417 /tests/units/Base.php | |
parent | 98b203fe691ec1ea9d6d19e916827185b575b05a (diff) |
Make user notifications pluggable
Diffstat (limited to 'tests/units/Base.php')
-rw-r--r-- | tests/units/Base.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/units/Base.php b/tests/units/Base.php index 3b7ffa2a..fe054344 100644 --- a/tests/units/Base.php +++ b/tests/units/Base.php @@ -88,6 +88,12 @@ abstract class Base extends PHPUnit_Framework_TestCase $this->container['logger']->setLogger(new File('/dev/null')); $this->container['httpClient'] = new FakeHttpClient; $this->container['emailClient'] = $this->getMockBuilder('EmailClient')->setMethods(array('send'))->getMock(); + + $this->container['userNotificationType'] = $this + ->getMockBuilder('\Kanboard\Model\UserNotificationType') + ->setConstructorArgs(array($this->container)) + ->setMethods(array('getType')) + ->getMock(); } public function tearDown() |