Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing issues with CakeTestCase test case and debug = 3. Fixes #189

  • Loading branch information...
commit c6f783ebfe04e33eb7b342a6ed18ccc5986e3990 1 parent 02df92a
@markstory markstory authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 cake/tests/cases/libs/cake_test_case.test.php
View
4 cake/tests/cases/libs/cake_test_case.test.php
@@ -78,6 +78,7 @@ class CakeTestCaseTest extends CakeTestCase {
* @return void
*/
function setUp() {
+ $this->_debug = Configure::read('debug');
$this->Case =& new SubjectCakeTestCase();
$reporter =& new MockCakeHtmlReporter();
$this->Case->setReporter($reporter);
@@ -90,6 +91,7 @@ function setUp() {
* @return void
*/
function tearDown() {
+ Configure::write('debug', $this->_debug);
unset($this->Case);
unset($this->Reporter);
}
@@ -239,6 +241,8 @@ function testGetTests() {
* @return void
**/
function testTestAction() {
+ Configure::write('debug', 2);
+
$_back = array(
'controller' => Configure::read('controllerPaths'),
'view' => Configure::read('viewPaths'),
Please sign in to comment.
Something went wrong with that request. Please try again.