fix broken test

This commit is contained in:
Manuel Raynaud
2013-07-05 12:13:28 +02:00
parent 9ed14bf7a3
commit e0416c08f8
2 changed files with 1 additions and 31 deletions

View File

@@ -71,34 +71,6 @@ class Thelia extends Kernel
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(),
Yaml::parse(THELIA_ROOT . '/local/config/database.yml'));
$propelConfig = $definePropel->getConfig();

View File

@@ -33,9 +33,7 @@ class TlogTest extends \PHPUnit_Framework_TestCase
public static function setUpBeforeClass()
{
if (!\Propel::isInit()){
\Propel::init(THELIA_ROOT . "/local/config/config_thelia.php");
}
self::$logger = Tlog::getInstance();