summaryrefslogtreecommitdiff
path: root/tests/units/Core/Event/EventManagerTest.php
blob: 974fde628e0a81a80cc910620fc26c7804c6c46d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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']);
    }
}