I have controller(testController) and action(index) with in namespace App\Modules\Admin\Controllers\
I am tring to call action(index) from kernal schedule function in following way
$this->call('App\Modules\Admin\Controllers\testController@index')->cron('*/1 * * * *');
but action is not getting called. It is throwing an error.
Error: exception 'InvalidArgumentException' with message 'Command "App\Modules\Admin\Controllers\testController@index" is not defined.'