Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\Yii::$app->homeUrl duplicate entry script name for acceptance test suite #16814

Open
bscheshirwork opened this issue Oct 23, 2018 · 0 comments

Comments

@bscheshirwork
Copy link
Contributor

What steps will reproduce the problem?

For codeception test

    public function checkHome(AcceptanceTester $I)
    {
        $I->amOnPage(Url::toRoute(\Yii::$app->homeUrl));

What is the expected result?

 I am on page "/index-test.php"
  [GET] http://backend.dev:8081/index-test.php
 

What do you get instead?

 I am on page "/index-test.php/index-test.php"
  [GET] http://backend.dev:8081/index-test.php/index-test.php
 

Additional info

for app-advanced test conf

return [
    'id' => 'app-backend-tests',
    'components' => [
        'assetManager' => [
            'basePath' => __DIR__ . '/../web/assets',
        ],
        'urlManager' => [
            'showScriptName' => true,
        ],
        'request' => [
            'cookieValidationKey' => 'test',
        ],
    ],
];
Q A
Yii version yiisoft/yii2 dev-master bfcccc4 Yii PHP Framework Version 2
PHP version 7.2.10
Operating system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants