Improve Automatic Actions plugin api
This commit is contained in:
18
tests/units/Core/Event/EventManagerTest.php
Normal file
18
tests/units/Core/Event/EventManagerTest.php
Normal file
@@ -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']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user