2008-10-11 07:09:42 +00:00
|
|
|
<?php
|
2015-08-09 12:14:28 +01:00
|
|
|
class Handle404Test extends ShimmiePHPUnitTestCase {
|
2015-09-26 11:17:13 +01:00
|
|
|
public function test404Handler() {
|
2009-07-15 02:42:18 +01:00
|
|
|
$this->get_page('not/a/page');
|
2015-09-20 18:37:36 +01:00
|
|
|
// most descriptive error first
|
2009-08-19 01:28:48 +01:00
|
|
|
$this->assert_text("No handler could be found for the page 'not/a/page'");
|
2015-09-20 18:37:36 +01:00
|
|
|
$this->assert_title('404');
|
|
|
|
$this->assert_response(404);
|
2008-10-11 07:09:42 +00:00
|
|
|
}
|
|
|
|
}
|
2014-04-25 22:54:51 -04:00
|
|
|
|