Skip to content

Commit

Permalink
Updating paths so app layout doesn't break tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Feb 28, 2010
1 parent dbe35a4 commit 428ee19
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cake/tests/cases/libs/error.test.php
Expand Up @@ -328,6 +328,10 @@ function testError() {
* @return void
*/
function testError404() {
App::build(array(
'views' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'libs' . DS . 'view' . DS)
), true);

ob_start();
$TestErrorHandler = new TestErrorHandler('error404', array('message' => 'Page not found', 'url' => '/test_error'));
$result = ob_get_clean();
Expand All @@ -345,6 +349,8 @@ function testError404() {
$result = ob_get_clean();
$this->assertNoPattern('#<script>#', $result);
$this->assertNoPattern('#</script>#', $result);

App::build();
}

/**
Expand Down

0 comments on commit 428ee19

Please sign in to comment.