diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-07-31 11:28:33 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-07-31 11:28:33 -0400 |
commit | 92a5a0f8607e136e42e411a8b7aa9e948d3e3611 (patch) | |
tree | 4d950fb00b6058d2e8462a432edee44cab88804c /tests/units/Base.php | |
parent | 92ac133d23cf3447412a6e69f68f2bc2e64ce9cd (diff) |
Cleanup events and stuff before processing job in worker
Diffstat (limited to 'tests/units/Base.php')
-rw-r--r-- | tests/units/Base.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/units/Base.php b/tests/units/Base.php index c471ee31..e44223ce 100644 --- a/tests/units/Base.php +++ b/tests/units/Base.php @@ -16,6 +16,11 @@ abstract class Base extends PHPUnit_Framework_TestCase { protected $container; + /** + * @var EventDispatcher + */ + protected $dispatcher; + public function setUp() { date_default_timezone_set('UTC'); @@ -49,6 +54,8 @@ abstract class Base extends PHPUnit_Framework_TestCase new Stopwatch ); + $this->dispatcher = $this->container['dispatcher']; + $this->container['db']->getStatementHandler()->withLogging(); $this->container['logger'] = new Logger(); |