mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Updating paths so app layout doesn't break tests.
This commit is contained in:
parent
dbe35a495c
commit
428ee1998a
1 changed files with 6 additions and 0 deletions
|
@ -328,6 +328,10 @@ class ErrorHandlerTest extends CakeTestCase {
|
|||
* @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();
|
||||
|
@ -345,6 +349,8 @@ class ErrorHandlerTest extends CakeTestCase {
|
|||
$result = ob_get_clean();
|
||||
$this->assertNoPattern('#<script>#', $result);
|
||||
$this->assertNoPattern('#</script>#', $result);
|
||||
|
||||
App::build();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue