fix test configuration
This commit is contained in:
@ -39,7 +39,7 @@ class AdminController extends Controller
|
||||
* @param UserQuery $userQuery
|
||||
* @param array $config
|
||||
*/
|
||||
public function __construct($id, Module $module, UserQuery $userQuery, array $config)
|
||||
public function __construct($id, Module $module, UserQuery $userQuery, array $config = [])
|
||||
{
|
||||
$this->userQuery = $userQuery;
|
||||
parent::__construct($id, $module, $config);
|
||||
|
||||
@ -20,7 +20,7 @@ class ProfileController extends Controller
|
||||
* @param ProfileQuery $profileQuery
|
||||
* @param array $config
|
||||
*/
|
||||
public function __construct($id, Module $module, ProfileQuery $profileQuery, array $config)
|
||||
public function __construct($id, Module $module, ProfileQuery $profileQuery, array $config = [])
|
||||
{
|
||||
$this->profileQuery = $profileQuery;
|
||||
parent::__construct($id, $module, $config);
|
||||
|
||||
@ -34,7 +34,7 @@ class RecoveryController extends Controller
|
||||
* @param TokenQuery $tokenQuery
|
||||
* @param array $config
|
||||
*/
|
||||
public function __construct($id, Module $module, UserQuery $userQuery, TokenQuery $tokenQuery, array $config)
|
||||
public function __construct($id, Module $module, UserQuery $userQuery, TokenQuery $tokenQuery, array $config = [])
|
||||
{
|
||||
$this->userQuery = $userQuery;
|
||||
$this->tokenQuery = $tokenQuery;
|
||||
@ -90,7 +90,7 @@ class RecoveryController extends Controller
|
||||
$this->trigger(FormEvent::EVENT_AFTER_REQUEST, $event);
|
||||
|
||||
return $this->render(
|
||||
'/user/shared/message',
|
||||
'/shared/message',
|
||||
[
|
||||
'title' => Yii::t('user', 'Recovery message sent'),
|
||||
'module' => $this->module,
|
||||
@ -130,7 +130,7 @@ class RecoveryController extends Controller
|
||||
);
|
||||
|
||||
return $this->render(
|
||||
'/user/shared/message',
|
||||
'/shared/message',
|
||||
[
|
||||
'title' => Yii::t('user', 'Invalid or expired link'),
|
||||
'module' => $this->module,
|
||||
@ -149,7 +149,7 @@ class RecoveryController extends Controller
|
||||
$this->trigger(ResetPasswordEvent::EVENT_AFTER_RESET, $event);
|
||||
|
||||
return $this->render(
|
||||
'/user/shared/message',
|
||||
'/shared/message',
|
||||
[
|
||||
'title' => Yii::t('user', 'Password has been changed'),
|
||||
'module' => $this->module,
|
||||
|
||||
@ -47,7 +47,7 @@ class RegistrationController extends Controller
|
||||
Module $module,
|
||||
UserQuery $userQuery,
|
||||
SocialNetworkAccountQuery $socialNetworkAccountQuery,
|
||||
array $config
|
||||
array $config = []
|
||||
) {
|
||||
|
||||
$this->userQuery = $userQuery;
|
||||
@ -106,7 +106,7 @@ class RegistrationController extends Controller
|
||||
'Your account has been created and a message with further instructions has been sent to your email'
|
||||
)
|
||||
);
|
||||
return $this->render('/user/shared/message', [
|
||||
return $this->render('/shared/message', [
|
||||
'title' => Yii::t('user', 'Your account has been created')
|
||||
]);
|
||||
}
|
||||
@ -186,7 +186,7 @@ class RegistrationController extends Controller
|
||||
}
|
||||
|
||||
return $this->render(
|
||||
'/user/shared/message',
|
||||
'/shared/message',
|
||||
[
|
||||
'title' => Yii::t('user', 'Account confirmation'),
|
||||
'module' => $this->module,
|
||||
|
||||
@ -36,7 +36,7 @@ class SecurityController extends Controller
|
||||
$id,
|
||||
Module $module,
|
||||
SocialNetworkAccountQuery $socialNetworkAccountQuery,
|
||||
array $config
|
||||
array $config = []
|
||||
) {
|
||||
$this->socialNetworkAccountQuery = $socialNetworkAccountQuery;
|
||||
parent::__construct($id, $module, $config);
|
||||
|
||||
@ -54,7 +54,7 @@ class SettingsController extends Controller
|
||||
ProfileQuery $profileQuery,
|
||||
UserQuery $userQuery,
|
||||
SocialNetworkAccountQuery $socialNetworkAccountQuery,
|
||||
array $config
|
||||
array $config = []
|
||||
) {
|
||||
$this->profileQuery = $profileQuery;
|
||||
$this->userQuery = $userQuery;
|
||||
|
||||
Reference in New Issue
Block a user