2020-01-26 13:19:35 +00:00
|
|
|
<?php declare(strict_types=1);
|
2019-05-28 17:59:38 +01:00
|
|
|
class Handle404Test extends ShimmiePHPUnitTestCase
|
|
|
|
{
|
|
|
|
public function test404Handler()
|
|
|
|
{
|
|
|
|
$this->get_page('not/a/page');
|
|
|
|
// most descriptive error first
|
|
|
|
$this->assert_text("No handler could be found for the page 'not/a/page'");
|
|
|
|
$this->assert_title('404');
|
|
|
|
$this->assert_response(404);
|
|
|
|
}
|
2008-10-11 07:09:42 +00:00
|
|
|
}
|