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'
        )
)

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)