summaryrefslogtreecommitdiff
path: root/tests/units/Model
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-09-22 21:17:50 -0400
committerFrederic Guillot <fred@kanboard.net>2015-09-22 21:17:50 -0400
commit9523ff44c04bf915e8b819ba8502ea5d20127d17 (patch)
treedc8da8d21c7b87236d929c1f6986351c1fad440b /tests/units/Model
parentb4fe1cd526e0227b49a399e02052beb1d35abd7f (diff)
Allow to extend automatic actions from plugins
Diffstat (limited to 'tests/units/Model')
-rw-r--r--tests/units/Model/ActionTest.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/units/Model/ActionTest.php b/tests/units/Model/ActionTest.php
index 9034679b..66b2cfe3 100644
--- a/tests/units/Model/ActionTest.php
+++ b/tests/units/Model/ActionTest.php
@@ -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);