From eb49c4b666687c5d51b1274bb5f94bfda8e3bbd4 Mon Sep 17 00:00:00 2001 From: euromark Date: Fri, 22 Feb 2013 10:36:05 +0100 Subject: [PATCH] proper response and response code (404 instead of 200) --- app/webroot/test.php | 2 +- lib/Cake/Console/Templates/skel/webroot/test.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/webroot/test.php b/app/webroot/test.php index 068753064..f18be099f 100644 --- a/app/webroot/test.php +++ b/app/webroot/test.php @@ -90,7 +90,7 @@ if (!empty($failed)) { } if (Configure::read('debug') < 1) { - die(__d('cake_dev', 'Debug setting does not allow access to this url.')); + throw new NotFoundException(__d('cake_dev', 'Debug setting does not allow access to this url.')); } require_once CAKE . 'TestSuite' . DS . 'CakeTestSuiteDispatcher.php'; diff --git a/lib/Cake/Console/Templates/skel/webroot/test.php b/lib/Cake/Console/Templates/skel/webroot/test.php index 3d2e80a65..f29ecbc42 100644 --- a/lib/Cake/Console/Templates/skel/webroot/test.php +++ b/lib/Cake/Console/Templates/skel/webroot/test.php @@ -90,7 +90,7 @@ if (!empty($failed)) { } if (Configure::read('debug') < 1) { - die(__d('cake_dev', 'Debug setting does not allow access to this url.')); + throw new NotFoundException(__d('cake_dev', 'Debug setting does not allow access to this url.')); } require_once CAKE . 'TestSuite' . DS . 'CakeTestSuiteDispatcher.php';