You are here

public function Fast404CustomReponseTestCase::testCustom404Page in Fast 404 7

File

./fast_404.test, line 115
Tests for fast_404.module.

Class

Fast404CustomReponseTestCase
Class Fast404CustomReponseTestCase

Code

public function testCustom404Page() {
  variable_set('fast_404_HTML_error_all_paths', TRUE);
  variable_set('fast_404_HTML_error_page', 'sites/all/modules/fast_404/tests/custom-404.html');
  $this
    ->drupalGet('unfound.flv');
  $this
    ->assertResponse(404);
  $this
    ->assertRaw('<html>
  <head>
    <title>404 Not Found</title>
  </head>
  <body>
    <h1>Custom 404!</h1>
  </body>
</html>');
}