fix broken test
This commit is contained in:
@@ -71,34 +71,6 @@ class Thelia extends Kernel
|
|||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if (! Propel::isInit()) {
|
|
||||||
|
|
||||||
$definePropel = new DefinePropel(new DatabaseConfiguration(),
|
|
||||||
Yaml::parse(THELIA_ROOT . '/local/config/database.yml'));
|
|
||||||
|
|
||||||
Propel::setConfiguration($definePropel->getConfig());
|
|
||||||
|
|
||||||
if ($this->isDebug()) {
|
|
||||||
Propel::setLogger(Tlog::getInstance());
|
|
||||||
$config = Propel::getConfiguration(PropelConfiguration::TYPE_OBJECT);
|
|
||||||
$config->setParameter('debugpdo.logging.methods', array(
|
|
||||||
'PropelPDO::exec',
|
|
||||||
'PropelPDO::query',
|
|
||||||
'PropelPDO::prepare',
|
|
||||||
'DebugPDOStatement::execute',
|
|
||||||
), false);
|
|
||||||
$config->setParameter('debugpdo.logging.details', array(
|
|
||||||
'time' => array('enabled' => true),
|
|
||||||
'mem' => array('enabled' => true),
|
|
||||||
'connection' => array('enabled' => true),
|
|
||||||
));
|
|
||||||
$con = Propel::getConnection("thelia");
|
|
||||||
$con->useDebug(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
Propel::initialize();
|
|
||||||
}*/
|
|
||||||
|
|
||||||
$definePropel = new DefinePropel(new DatabaseConfiguration(),
|
$definePropel = new DefinePropel(new DatabaseConfiguration(),
|
||||||
Yaml::parse(THELIA_ROOT . '/local/config/database.yml'));
|
Yaml::parse(THELIA_ROOT . '/local/config/database.yml'));
|
||||||
$propelConfig = $definePropel->getConfig();
|
$propelConfig = $definePropel->getConfig();
|
||||||
|
|||||||
@@ -33,9 +33,7 @@ class TlogTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
public static function setUpBeforeClass()
|
public static function setUpBeforeClass()
|
||||||
{
|
{
|
||||||
if (!\Propel::isInit()){
|
|
||||||
\Propel::init(THELIA_ROOT . "/local/config/config_thelia.php");
|
|
||||||
}
|
|
||||||
|
|
||||||
self::$logger = Tlog::getInstance();
|
self::$logger = Tlog::getInstance();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user