mirror of
https://github.com/yiisoft/app.git
synced 2026-03-23 08:26:50 +01:00
34 lines
1.0 KiB
PHP
34 lines
1.0 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Tests\Acceptance;
|
|
|
|
use App\Tests\Support\AcceptanceTester;
|
|
|
|
final class NotFoundHandlerCest
|
|
{
|
|
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 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.');
|
|
}
|
|
|
|
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 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');
|
|
$I->expectTo('see page home.');
|
|
$I->see('Hello!');
|
|
}
|
|
}
|