File tree Expand file tree Collapse file tree 3 files changed +3
-11
lines changed
Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Original file line number Diff line number Diff line change 77use Yiisoft \Router \Route ;
88
99return [
10- Group::create (' /{_language} ' )
10+ Group::create ()
1111 ->routes (
1212 Route::get ('/ ' )->action ([SiteController::class, 'index ' ])->name ('home ' ),
1313 ),
Original file line number Diff line number Diff line change @@ -15,12 +15,4 @@ public function testIndexPage(AcceptanceTester $I): void
1515 $ I ->expectTo ('see page home. ' );
1616 $ I ->see ('Hello! ' );
1717 }
18-
19- public function testIndexPageRu (AcceptanceTester $ I ): void
20- {
21- $ I ->wantTo ('home page works. ' );
22- $ I ->amOnPage ('/ru/ ' );
23- $ I ->expectTo ('see page home. ' );
24- $ I ->see ('Привет! ' );
25- }
2618}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public function about(AcceptanceTester $I): void
1313 $ I ->amOnPage ('/about ' );
1414 $ I ->wantTo ('see about page. ' );
1515 $ I ->see ('404 ' );
16- $ I ->see ('The page /en/ about not found. ' );
16+ $ I ->see ('The page /about not found. ' );
1717 $ I ->see ('The above error occurred while the Web server was processing your request. ' );
1818 $ I ->see ('Please contact us if you think this is a server error. Thank you. ' );
1919 }
@@ -23,7 +23,7 @@ public function aboutReturnHome(AcceptanceTester $I): void
2323 $ I ->amOnPage ('/about ' );
2424 $ I ->wantTo ('see about page. ' );
2525 $ I ->see ('404 ' );
26- $ I ->see ('The page /en/ about not found. ' );
26+ $ I ->see ('The page /about not found. ' );
2727 $ I ->see ('The above error occurred while the Web server was processing your request. ' );
2828 $ I ->see ('Please contact us if you think this is a server error. Thank you. ' );
2929 $ I ->click ('Go Back Home ' );
You can’t perform that action at this time.
0 commit comments