File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -432,7 +432,7 @@ protected function redirectToLanguage($language)
432432 }
433433 Yii::trace ("Redirecting to $ url. " , __METHOD__ );
434434 Yii::$ app ->getResponse ()->redirect ($ url );
435- if (YII_ENV_TEST ) {
435+ if (YII2_LOCALEURLS_TEST ) {
436436 // Response::redirect($url) above will call `Url::to()` internally. So to really
437437 // test for the same final redirect URL here, we need to call Url::to(), too.
438438 throw new \yii \base \Exception (\yii \helpers \Url::to ($ url ));
Original file line number Diff line number Diff line change 55
66define ('YII_DEBUG ' , true );
77define ('YII_ENV_TEST ' , true );
8+ define ('YII2_LOCALEURLS_TEST ' , true );
89// require composer autoloader if available
910require (__DIR__ . '/../vendor/autoload.php ' );
1011require (__DIR__ . '/../vendor/yiisoft/yii2/Yii.php ' );
You can’t perform that action at this time.
0 commit comments