示例#1
0
文件: UrlTest.php 项目: efueger/luya
 public function setUp()
 {
     parent::setUp();
     Yii::$app->request->baseUrl = '';
     Yii::$app->request->scriptUrl = '';
     Yii::$app->urlManager->addRules($this->urlRules);
     Yii::$app->composition->setKey('langShortCode', 'de');
 }
示例#2
0
 public function setUp()
 {
     parent::setUp();
     Yii::$app->composition->setKey('langShortCode', 'en');
 }