Allow to extend automatic actions from plugins

This commit is contained in:
Frederic Guillot
2015-09-22 21:17:50 -04:00
parent b4fe1cd526
commit 9523ff44c0
4 changed files with 88 additions and 4 deletions

View File

@@ -27,6 +27,17 @@ class ActionTest extends Base
$this->assertEquals('TaskLogMoveAnotherColumn', key($actions));
}
public function testExtendActions()
{
$a = new Action($this->container);
$a->extendActions('MyClass', 'Description');
$actions = $a->getAvailableActions();
$this->assertNotEmpty($actions);
$this->assertContains('Description', $actions);
$this->assertArrayHasKey('MyClass', $actions);
}
public function testGetEvents()
{
$a = new Action($this->container);