diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-06-20 10:48:47 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-06-20 10:48:47 -0400 |
commit | cb0916d10e4a42a62f0ac8c69ecb4b7a15f398b4 (patch) | |
tree | d5344b06ee0b87224ec157f44bf513ca7e353b5b /tests/units/Base.php | |
parent | 7056d14c95888eebe90d023524d4a63e562a9f64 (diff) |
Add automatic action to send a task by email
Diffstat (limited to 'tests/units/Base.php')
-rw-r--r-- | tests/units/Base.php | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/tests/units/Base.php b/tests/units/Base.php index bc6518fb..d2190c32 100644 --- a/tests/units/Base.php +++ b/tests/units/Base.php @@ -11,22 +11,6 @@ use SimpleLogger\File; date_default_timezone_set('UTC'); -class FakeEmailClient -{ - public $email; - public $name; - public $subject; - public $html; - - public function send($email, $name, $subject, $html) - { - $this->email = $email; - $this->name = $name; - $this->subject = $subject; - $this->html = $html; - } -} - class FakeHttpClient { private $url = ''; @@ -103,7 +87,7 @@ abstract class Base extends PHPUnit_Framework_TestCase $this->container['logger'] = new Logger; $this->container['logger']->setLogger(new File('/dev/null')); $this->container['httpClient'] = new FakeHttpClient; - $this->container['emailClient'] = new FakeEmailClient; + $this->container['emailClient'] = $this->getMockBuilder('EmailClient')->setMethods(array('send'))->getMock(); } public function tearDown() |