diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-09-22 21:17:50 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-09-22 21:17:50 -0400 |
commit | 9523ff44c04bf915e8b819ba8502ea5d20127d17 (patch) | |
tree | dc8da8d21c7b87236d929c1f6986351c1fad440b /tests/units/Model | |
parent | b4fe1cd526e0227b49a399e02052beb1d35abd7f (diff) |
Allow to extend automatic actions from plugins
Diffstat (limited to 'tests/units/Model')
-rw-r--r-- | tests/units/Model/ActionTest.php | 11 |
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); |