1
0
mirror of https://github.com/chylex/Lightning-Tracker.git synced 2024-12-22 05:42:48 +01:00
Lightning-Tracker/tests/acceptance/T011_PageRouting_Cest.php

30 lines
647 B
PHP

<?php
declare(strict_types = 1);
namespace acceptance;
use AcceptanceTester;
use Codeception\Example;
class T011_PageRouting_Cest{
/**
* @example ["/invalid"]
* @example ["/about/invalid"]
* @example ["/project"]
* @example ["/project/AdminVisible/invalid"]
*/
public function nonExistentPage(AcceptanceTester $I, Example $example): void{
$I->amOnPage($example[0]);
$I->seePageNotFound();
$I->see('Not Found', 'h2');
}
public function faviconIcoYieldsEmpty404Page(AcceptanceTester $I): void{
$I->amOnPage('/favicon.ico');
$I->seePageNotFound();
$I->assertEmpty($I->grabPageSource());
}
}
?>