Doing a unit test use Url::toRoute function went wrong

doing a unit test use Url::toRoute() function went a exption

[yii\base\InvalidParamException] Unable to resolve the relative route: ex-sign-approval/view. No active controller is available.

How to fix this ?

Mock web application.

1 Like