generated from yiisoft/package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 45
/
NotFoundHandlerCest.php
33 lines (28 loc) · 1.01 KB
/
NotFoundHandlerCest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?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 /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 /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!');
}
}