mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-01 23:29:45 +00:00
Fixing issues with CakeTestCase test case and debug = 3. Fixes #189
This commit is contained in:
parent
02df92a3a3
commit
c6f783ebfe
1 changed files with 4 additions and 0 deletions
|
@ -78,6 +78,7 @@ class CakeTestCaseTest extends CakeTestCase {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function setUp() {
|
function setUp() {
|
||||||
|
$this->_debug = Configure::read('debug');
|
||||||
$this->Case =& new SubjectCakeTestCase();
|
$this->Case =& new SubjectCakeTestCase();
|
||||||
$reporter =& new MockCakeHtmlReporter();
|
$reporter =& new MockCakeHtmlReporter();
|
||||||
$this->Case->setReporter($reporter);
|
$this->Case->setReporter($reporter);
|
||||||
|
@ -90,6 +91,7 @@ class CakeTestCaseTest extends CakeTestCase {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function tearDown() {
|
function tearDown() {
|
||||||
|
Configure::write('debug', $this->_debug);
|
||||||
unset($this->Case);
|
unset($this->Case);
|
||||||
unset($this->Reporter);
|
unset($this->Reporter);
|
||||||
}
|
}
|
||||||
|
@ -239,6 +241,8 @@ class CakeTestCaseTest extends CakeTestCase {
|
||||||
* @return void
|
* @return void
|
||||||
**/
|
**/
|
||||||
function testTestAction() {
|
function testTestAction() {
|
||||||
|
Configure::write('debug', 2);
|
||||||
|
|
||||||
$_back = array(
|
$_back = array(
|
||||||
'controller' => Configure::read('controllerPaths'),
|
'controller' => Configure::read('controllerPaths'),
|
||||||
'view' => Configure::read('viewPaths'),
|
'view' => Configure::read('viewPaths'),
|
||||||
|
|
Loading…
Add table
Reference in a new issue