Replace 0 to false and 1 to true in Config:;set(DEBUG...) in majestic tests.
This commit is contained in:
@ -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')
|
||||
|
@ -43,7 +43,7 @@ class LayoutTest extends PHPUnit_Framework_TestCase
|
||||
public function testConstruct()
|
||||
{
|
||||
|
||||
Config::set('DEBUG', 0);
|
||||
Config::set('DEBUG', false);
|
||||
$layout = $this->getMockForAbstractClass('Layout');
|
||||
$this->assertAttributeInstanceOf('PHPView', 'view', $layout);
|
||||
}
|
||||
@ -51,7 +51,7 @@ class LayoutTest extends PHPUnit_Framework_TestCase
|
||||
public function testFetch()
|
||||
{
|
||||
|
||||
Config::set('DEBUG', 0);
|
||||
Config::set('DEBUG', false);
|
||||
$layout = $this->getMockForAbstractClass('Layout');
|
||||
|
||||
$action = $this->getMock('Action', array('fetch'));
|
||||
@ -65,7 +65,7 @@ class LayoutTest extends PHPUnit_Framework_TestCase
|
||||
public function testFetchWithTemplate()
|
||||
{
|
||||
|
||||
Config::set('DEBUG', 0);
|
||||
Config::set('DEBUG', false);
|
||||
$layout = $this->getMockForAbstractClass('Layout');
|
||||
|
||||
$class = new ReflectionClass('Layout');
|
||||
@ -89,7 +89,7 @@ class LayoutTest extends PHPUnit_Framework_TestCase
|
||||
public function testAppend()
|
||||
{
|
||||
|
||||
Config::set('DEBUG', 0);
|
||||
Config::set('DEBUG', false);
|
||||
$layout = $this->getMockForAbstractClass('Layout', array('append', 'prepend'), 'LayoutMock');
|
||||
$action = $this->getMock('Action', array('fetch'));
|
||||
|
||||
|
Reference in New Issue
Block a user