server/apps/files/tests
Daniel Calviño Sánchez 7760f16521 Trigger events before and after a file action is executed
In the same way that other elements can know when a FileAction is
registered or a default action is set this commit makes possible to be
notified before and after a FileAction is executed.

This is achieved by wrapping the registered action handler in a custom
function that notifies the listeners before and after executing the
handler itself. Due to this approach only FileActions registered through
"registerAction" trigger the events, although that is not a problem as
this is how the actions should be added to the FileActions anyway.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-12-19 18:33:34 +01:00
..
Activity Update license headers 2017-11-06 16:56:19 +01:00
BackgroundJob Update license headers 2017-11-06 16:56:19 +01:00
Command Use ::class in test mocks of encryption app 2017-10-26 13:56:56 +02:00
Controller Update license headers 2017-11-06 16:56:19 +01:00
js Trigger events before and after a file action is executed 2017-12-19 18:33:34 +01:00
Service Add tests for favorite action 2016-12-04 12:54:34 +01:00
Settings Update license headers 2017-11-06 16:56:19 +01:00
HelperTest.php Update license headers 2017-11-06 16:56:19 +01:00