Replace 0 to false and 1 to true in Config:;set(DEBUG...) in majestic tests.
This commit is contained in:
@ -25,7 +25,7 @@ class EnvTest extends PHPUnit_Framework_TestCase
|
||||
public function testGetRequestUri()
|
||||
{
|
||||
|
||||
Config::set('DEBUG', 0);
|
||||
Config::set('DEBUG', false);
|
||||
$_SERVER['REQUEST_URI'] = '/test/index.php?id=1&test=wet&id_theme=512';
|
||||
$this->assertSame('/test/index.php', Env::getRequestUri());
|
||||
$_SERVER['REQUEST_URI'] = '/tes?t/index.php?id=1&test=wet&id_theme=512';
|
||||
@ -38,7 +38,7 @@ class EnvTest extends PHPUnit_Framework_TestCase
|
||||
public function testTrimBaseRequestUri()
|
||||
{
|
||||
|
||||
Config::set('DEBUG', 0);
|
||||
Config::set('DEBUG', false);
|
||||
$class = new ReflectionClass('Env');
|
||||
$this->started = $class->getProperty('request');
|
||||
$this->started->setAccessible(true);
|
||||
|
Reference in New Issue
Block a user