Skip to content

Commit

Permalink
Merge pull request cakephp#1155 from dereuromark/master-test-404
Browse files Browse the repository at this point in the history
proper response and response code for test.php with debug 0 (404 instead of 200)
  • Loading branch information
Mark committed Feb 27, 2013
2 parents 1d3095e + eb49c4b commit 8d3cd6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/webroot/test.php
Expand Up @@ -90,7 +90,7 @@
}

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';
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Console/Templates/skel/webroot/test.php
Expand Up @@ -90,7 +90,7 @@
}

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';
Expand Down

0 comments on commit 8d3cd6e

Please sign in to comment.