File tree 3 files changed +3
-11
lines changed
3 files changed +3
-11
lines changed Original file line number Diff line number Diff line change 7
7
use Yiisoft \Router \Route ;
8
8
9
9
return [
10
- Group::create (' /{_language} ' )
10
+ Group::create ()
11
11
->routes (
12
12
Route::get ('/ ' )->action ([SiteController::class, 'index ' ])->name ('home ' ),
13
13
),
Original file line number Diff line number Diff line change @@ -15,12 +15,4 @@ public function testIndexPage(AcceptanceTester $I): void
15
15
$ I ->expectTo ('see page home. ' );
16
16
$ I ->see ('Hello! ' );
17
17
}
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
- }
26
18
}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public function about(AcceptanceTester $I): void
13
13
$ I ->amOnPage ('/about ' );
14
14
$ I ->wantTo ('see about page. ' );
15
15
$ I ->see ('404 ' );
16
- $ I ->see ('The page /en/ about not found. ' );
16
+ $ I ->see ('The page /about not found. ' );
17
17
$ I ->see ('The above error occurred while the Web server was processing your request. ' );
18
18
$ I ->see ('Please contact us if you think this is a server error. Thank you. ' );
19
19
}
@@ -23,7 +23,7 @@ public function aboutReturnHome(AcceptanceTester $I): void
23
23
$ I ->amOnPage ('/about ' );
24
24
$ I ->wantTo ('see about page. ' );
25
25
$ I ->see ('404 ' );
26
- $ I ->see ('The page /en/ about not found. ' );
26
+ $ I ->see ('The page /about not found. ' );
27
27
$ I ->see ('The above error occurred while the Web server was processing your request. ' );
28
28
$ I ->see ('Please contact us if you think this is a server error. Thank you. ' );
29
29
$ I ->click ('Go Back Home ' );
You can’t perform that action at this time.
0 commit comments