Replace constant DEBUG to use in Config. Remove start profiler from FrontController (moved to bootstrap).
This commit is contained in:
@ -80,9 +80,8 @@ class ErrorActionTest extends Action_TestCase
|
||||
*/
|
||||
public function testFetchNoTemplate()
|
||||
{
|
||||
if (!defined('DEBUG')) {
|
||||
define('DEBUG', false);
|
||||
}
|
||||
|
||||
Config::set('DEBUG', 0);
|
||||
$exception = $this->getMock('ErrorException');
|
||||
$controller = FrontController::getInstance();
|
||||
$controller->setView('SomeView');
|
||||
@ -123,9 +122,8 @@ class ErrorActionTest extends Action_TestCase
|
||||
|
||||
private function setConstants($val = false)
|
||||
{
|
||||
if (!defined('DEBUG')) {
|
||||
define('DEBUG', $val);
|
||||
}
|
||||
|
||||
Config::set('DEBUG', $val);
|
||||
}
|
||||
|
||||
private function header()
|
||||
|
Reference in New Issue
Block a user