This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/ext/handle_404/test.php

14 lines
325 B
PHP
Raw Normal View History

<?php
class Handle404Test extends SCoreWebTestCase {
function test404Handler() {
$this->get_page('not/a/page');
2009-08-19 00:28:48 +00:00
$this->assert_response(404);
$this->assert_title('404');
$this->assert_text("No handler could be found for the page 'not/a/page'");
2012-03-10 02:19:04 +00:00
$this->get_page('favicon.ico');
$this->assert_response(200);
}
}