diff --git a/config/common/routes.php b/config/common/routes.php index 72a7600..00c3a0b 100644 --- a/config/common/routes.php +++ b/config/common/routes.php @@ -7,7 +7,7 @@ use Yiisoft\Router\Route; return [ - Group::create('/{_language}') + Group::create() ->routes( Route::get('/')->action([SiteController::class, 'index'])->name('home'), ), diff --git a/tests/Acceptance/HomeCest.php b/tests/Acceptance/HomeCest.php index f4d33e0..40cd587 100644 --- a/tests/Acceptance/HomeCest.php +++ b/tests/Acceptance/HomeCest.php @@ -15,12 +15,4 @@ public function testIndexPage(AcceptanceTester $I): void $I->expectTo('see page home.'); $I->see('Hello!'); } - - public function testIndexPageRu(AcceptanceTester $I): void - { - $I->wantTo('home page works.'); - $I->amOnPage('/ru/'); - $I->expectTo('see page home.'); - $I->see('Привет!'); - } } diff --git a/tests/Acceptance/NotFoundHandlerCest.php b/tests/Acceptance/NotFoundHandlerCest.php index 1868c21..f4a0bbc 100644 --- a/tests/Acceptance/NotFoundHandlerCest.php +++ b/tests/Acceptance/NotFoundHandlerCest.php @@ -13,7 +13,7 @@ public function about(AcceptanceTester $I): void $I->amOnPage('/about'); $I->wantTo('see about page.'); $I->see('404'); - $I->see('The page /en/about not found.'); + $I->see('The page /about not found.'); $I->see('The above error occurred while the Web server was processing your request.'); $I->see('Please contact us if you think this is a server error. Thank you.'); } @@ -23,7 +23,7 @@ public function aboutReturnHome(AcceptanceTester $I): void $I->amOnPage('/about'); $I->wantTo('see about page.'); $I->see('404'); - $I->see('The page /en/about not found.'); + $I->see('The page /about not found.'); $I->see('The above error occurred while the Web server was processing your request.'); $I->see('Please contact us if you think this is a server error. Thank you.'); $I->click('Go Back Home');