2008-10-11 07:09:42 +00:00
|
|
|
<?php
|
2009-07-15 02:42:18 +01:00
|
|
|
class Handle404Test extends ShimmieWebTestCase {
|
2008-10-11 07:09:42 +00:00
|
|
|
function test404Handler() {
|
2009-07-15 02:42:18 +01:00
|
|
|
$this->get_page('not/a/page');
|
2008-10-11 07:09:42 +00:00
|
|
|
$this->assertResponse(404);
|
|
|
|
$this->assertTitle('404');
|
|
|
|
$this->assertText("No handler could be found for the page 'not/a/page'");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|