Skip to content

Commit

Permalink
Fixing issues with CakeTestCase test case and debug = 3. Fixes #189
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 21, 2009
1 parent 02df92a commit c6f783e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cake/tests/cases/libs/cake_test_case.test.php
Expand Up @@ -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);
Expand All @@ -90,6 +91,7 @@ function setUp() {
* @return void
*/
function tearDown() {
Configure::write('debug', $this->_debug);
unset($this->Case);
unset($this->Reporter);
}
Expand Down Expand Up @@ -239,6 +241,8 @@ function testGetTests() {
* @return void
**/
function testTestAction() {
Configure::write('debug', 2);

$_back = array(
'controller' => Configure::read('controllerPaths'),
'view' => Configure::read('viewPaths'),
Expand Down

0 comments on commit c6f783e

Please sign in to comment.