diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-11-15 12:50:33 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-11-15 12:50:33 -0500 |
commit | a675271ad71b7713d1b33bdba3c51b2b04813229 (patch) | |
tree | e54d8a95e16ca521193b9fd5a5eb071aa2910823 /tests/units/Base.php | |
parent | 2fc402f6733573627ad25394d109b9f848ef04f6 (diff) |
Rewrite of session management
Diffstat (limited to 'tests/units/Base.php')
-rw-r--r-- | tests/units/Base.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/units/Base.php b/tests/units/Base.php index 8112c954..6d7a97a3 100644 --- a/tests/units/Base.php +++ b/tests/units/Base.php @@ -8,6 +8,8 @@ use Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher; use Symfony\Component\Stopwatch\Stopwatch; use SimpleLogger\Logger; use SimpleLogger\File; +use Kanboard\Core\Session\FlashMessage; +use Kanboard\Core\Session\SessionStorage; class FakeHttpClient { @@ -93,6 +95,12 @@ abstract class Base extends PHPUnit_Framework_TestCase ->setConstructorArgs(array($this->container)) ->setMethods(array('getType', 'getSelectedTypes')) ->getMock(); + + $this->container['sessionStorage'] = new SessionStorage; + + $this->container['flash'] = function($c) { + return new FlashMessage($c); + }; } public function tearDown() |