Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed Jan 19, 2025
1 parent 5935bf6 commit f4b3efa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion config/common/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Yiisoft\Router\Route;

return [
Group::create('/{_language}')
Group::create()
->routes(
Route::get('/')->action([SiteController::class, 'index'])->name('home'),
),
Expand Down
8 changes: 0 additions & 8 deletions tests/Acceptance/HomeCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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('Привет!');
}
}
4 changes: 2 additions & 2 deletions tests/Acceptance/NotFoundHandlerCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}
Expand All @@ -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');
Expand Down

0 comments on commit f4b3efa

Please sign in to comment.