Replace 0 to false and 1 to true in Config:;set(DEBUG...) in majestic tests.

This commit is contained in:
Alexander Demidov
2012-07-09 13:47:32 +04:00
parent dc60d703bf
commit b6a2c4dbc3
18 changed files with 101 additions and 101 deletions

View File

@ -43,7 +43,7 @@ class ErrorLayoutTest extends PHPUnit_Framework_TestCase
public function testSetException()
{
Config::set('DEBUG', 0);
Config::set('DEBUG', false);
$layout = new ErrorLayout();
$layout->setException(new GeneralException());
$this->assertAttributeInstanceOf('GeneralException', 'exception', $layout);
@ -52,7 +52,7 @@ class ErrorLayoutTest extends PHPUnit_Framework_TestCase
public function testExecute()
{
Config::set('DEBUG', 0);
Config::set('DEBUG', false);
$action = $this->getMock('Action', array('fetch'));
$action->expects($this->once())
->method('fetch')