summaryrefslogtreecommitdiff
path: root/tests/units/Core/Event/EventManagerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/units/Core/Event/EventManagerTest.php')
-rw-r--r--tests/units/Core/Event/EventManagerTest.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/units/Core/Event/EventManagerTest.php b/tests/units/Core/Event/EventManagerTest.php
new file mode 100644
index 00000000..974fde62
--- /dev/null
+++ b/tests/units/Core/Event/EventManagerTest.php
@@ -0,0 +1,18 @@
+<?php
+
+require_once __DIR__.'/../../Base.php';
+
+use Kanboard\Core\Event\EventManager;
+
+class EventManagerTest extends Base
+{
+ public function testAddEvent()
+ {
+ $eventManager = new EventManager;
+ $eventManager->register('my.event', 'My Event');
+
+ $events = $eventManager->getAll();
+ $this->assertArrayHasKey('my.event', $events);
+ $this->assertEquals('My Event', $events['my.event']);
+ }
+}