13 lines
331 B
PHP
13 lines
331 B
PHP
<?php
|
|
class Handle404Test extends ShimmiePHPUnitTestCase {
|
|
function test404Handler() {
|
|
$this->get_page('not/a/page');
|
|
$this->assert_response(404);
|
|
$this->assert_title('404');
|
|
$this->assert_text("No handler could be found for the page 'not/a/page'");
|
|
|
|
$this->get_page('favicon.ico');
|
|
$this->assert_response(200);
|
|
}
|
|
}
|
|
|