From: Jan Schneider Date: Tue, 30 Nov 2010 16:50:26 +0000 (+0100) Subject: Fix Horde_Cache usage correctly. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=84de7bb593417155e4794e6c339f5441e45c0019;p=horde.git Fix Horde_Cache usage correctly. --- diff --git a/framework/Db/test/Horde/Db/Adapter/MysqlSuite.php b/framework/Db/test/Horde/Db/Adapter/MysqlSuite.php index 192ed6467..4be4d0ff1 100644 --- a/framework/Db/test/Horde/Db/Adapter/MysqlSuite.php +++ b/framework/Db/test/Horde/Db/Adapter/MysqlSuite.php @@ -79,7 +79,7 @@ class Horde_Db_Adapter_MysqlSuite extends PHPUnit_Framework_TestSuite $conn = new Horde_Db_Adapter_Mysql($config); - $cache = new Horde_Cache_Storage_Mock(); + $cache = new Horde_Cache(new Horde_Cache_Storage_Mock()); $conn->setCache($cache); return array($conn, $cache); diff --git a/framework/Db/test/Horde/Db/Adapter/MysqliSuite.php b/framework/Db/test/Horde/Db/Adapter/MysqliSuite.php index 26b5fce8d..ce1acfa8b 100644 --- a/framework/Db/test/Horde/Db/Adapter/MysqliSuite.php +++ b/framework/Db/test/Horde/Db/Adapter/MysqliSuite.php @@ -77,7 +77,7 @@ class Horde_Db_Adapter_MysqliSuite extends PHPUnit_Framework_TestSuite $conn = new Horde_Db_Adapter_Mysqli($config); - $cache = new Horde_Cache_Storage_Mock(); + $cache = new Horde_Cache(new Horde_Cache_Storage_Mock()); $conn->setCache($cache); return array($conn, $cache); diff --git a/framework/Db/test/Horde/Db/Adapter/Pdo/MysqlSuite.php b/framework/Db/test/Horde/Db/Adapter/Pdo/MysqlSuite.php index 04887eb11..3bf7a4de0 100644 --- a/framework/Db/test/Horde/Db/Adapter/Pdo/MysqlSuite.php +++ b/framework/Db/test/Horde/Db/Adapter/Pdo/MysqlSuite.php @@ -77,7 +77,7 @@ class Horde_Db_Adapter_Pdo_MysqlSuite extends PHPUnit_Framework_TestSuite $conn = new Horde_Db_Adapter_Pdo_Mysql($config); - $cache = new Horde_Cache_Storage_Mock(); + $cache = new Horde_Cache(new Horde_Cache_Storage_Mock()); $conn->setCache($cache); return array($conn, $cache); diff --git a/framework/Db/test/Horde/Db/Adapter/Pdo/PgsqlSuite.php b/framework/Db/test/Horde/Db/Adapter/Pdo/PgsqlSuite.php index 6640bb090..c3cc58fb3 100644 --- a/framework/Db/test/Horde/Db/Adapter/Pdo/PgsqlSuite.php +++ b/framework/Db/test/Horde/Db/Adapter/Pdo/PgsqlSuite.php @@ -80,7 +80,7 @@ class Horde_Db_Adapter_Pdo_PgsqlSuite extends PHPUnit_Framework_TestSuite $conn = new Horde_Db_Adapter_Pdo_Pgsql($config); - $cache = new Horde_Cache_Storage_Mock(); + $cache = new Horde_Cache(new Horde_Cache_Storage_Mock()); $conn->setCache($cache); return array($conn, $cache); diff --git a/framework/Db/test/Horde/Db/Adapter/Pdo/SqliteSuite.php b/framework/Db/test/Horde/Db/Adapter/Pdo/SqliteSuite.php index b011b20de..02a5d0bd0 100644 --- a/framework/Db/test/Horde/Db/Adapter/Pdo/SqliteSuite.php +++ b/framework/Db/test/Horde/Db/Adapter/Pdo/SqliteSuite.php @@ -63,7 +63,7 @@ class Horde_Db_Adapter_Pdo_SqliteSuite extends PHPUnit_Framework_TestSuite 'dbname' => ':memory:', )); - $cache = new Horde_Cache_Storage_Mock(); + $cache = new Horde_Cache(new Horde_Cache_Storage_Mock()); $conn->setCache($cache); return array($conn, $cache);