/** * @covers Kunstmaan\MediaBundle\Helper\MediaManager::getFolderAddActions */ public function testGetFolderAddActions() { $actions = array(); $this->assertEquals($actions, $this->object->getFolderAddActions()); $actions = array('action1', 'action2'); $handler = $this->getCustomHandler(); $handler->expects($this->once())->method('getAddFolderActions')->will($this->returnValue($actions)); $this->object->addHandler($handler); $this->assertEquals($actions, $this->object->getFolderAddActions()); }