Fix tests

This commit is contained in:
Timothy Warren 2016-04-06 14:58:19 -04:00
parent 352ebb4105
commit 181af86899

View File

@ -32,6 +32,11 @@ class CacheManager implements CacheInterface {
$config = $container->get('config'); $config = $container->get('config');
$driverConf = $config->get('cache_driver'); $driverConf = $config->get('cache_driver');
if (empty($driverConf))
{
$driverConf = 'SQLDriver';
}
$driverClass = __NAMESPACE__ . "\\Driver\\{$driverConf}"; $driverClass = __NAMESPACE__ . "\\Driver\\{$driverConf}";
$driver = new $driverClass($container); $driver = new $driverClass($container);