From 77a78b49909f9d2ca598871f0588497837cb9f6a Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 29 Jun 2009 20:53:55 -0700 Subject: Revert to serializing and deserializing data. The cache table can't accept PHP constructs like arrays (the tests were choking on this). Update tests to reflect the new `key` column. --- modules/gallery/tests/Cache_Test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/gallery/tests/Cache_Test.php') diff --git a/modules/gallery/tests/Cache_Test.php b/modules/gallery/tests/Cache_Test.php index a5e0e7a0..6b525265 100644 --- a/modules/gallery/tests/Cache_Test.php +++ b/modules/gallery/tests/Cache_Test.php @@ -30,7 +30,7 @@ class Cache_Test extends Unit_Test_Case { $this->assert_false($this->_driver->exists("test_key"), "test_key should not be defined"); $id = md5(rand()); - $db->insert("caches", array("id" => $id, "tags" => ", ", + $db->insert("caches", array("key" => $id, "tags" => ", ", "expiration" => 84600 + time(), "cache" => serialize("some test data"))); @@ -41,7 +41,7 @@ class Cache_Test extends Unit_Test_Case { $db = Database::instance(); $id = md5(rand()); - $db->insert("caches", array("id" => $id, "tags" => ", ", + $db->insert("caches", array("key" => $id, "tags" => ", ", "expiration" => 84600 + time(), "cache" => serialize("some test data"))); -- cgit v1.2.3