luyatests\core\helpers\UrlTest::testHelperEqualsAbsoluteInternal PHP Méthode

testHelperEqualsAbsoluteInternal() public méthode

    public function testHelperEqualsAbsoluteInternal()
    {
        Yii::$app->request->baseUrl = '';
        Yii::$app->request->scriptUrl = '';
        Yii::$app->composition->hidden = true;
        $this->assertEquals(Url::to(['/admin/login/index'], true), Url::toInternal(['admin/login/index'], true));
        Yii::$app->composition->hidden = false;
        $this->assertEquals(Url::to(['/admin/login/index'], true), Url::toInternal(['admin/login/index'], true));
    }