Unit Testing action hook

I found out why. here is the solution: you have to activate the plugin in the tests / bootstrap.php file:

$GLOBALS[ 'wp_tests_options' ] = array(
        'active_plugins' => array(
                'YOUR-PLUGIN/YOUR-PLUGIN.php'
        )
)