public function testGetActions()
 {
     $a = new Action($this->container);
     $actions = $a->getAvailableActions();
     $this->assertNotEmpty($actions);
     $this->assertEquals('Add a comment log when moving the task between columns', current($actions));
     $this->assertEquals('TaskLogMoveAnotherColumn', key($actions));
 }
示例#2
0
 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);
 }