Merge pull request #1155 from dereuromark/master-test-404

proper response and response code for test.php with debug 0 (404 instead of 200)
This commit is contained in:
Mark 2013-02-27 00:35:13 -08:00
commit 8d3cd6e8fd
2 changed files with 2 additions and 2 deletions

View file

@ -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';

View file

@ -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';