summaryrefslogtreecommitdiff
path: root/modules/gallery/tests/Cache_Test.php
diff options
context:
space:
mode:
authorNathan Kinkade <nkinkade@nkinka.de>2010-10-06 21:13:35 +0000
committerNathan Kinkade <nkinkade@nkinka.de>2010-10-06 21:13:35 +0000
commit7dae93afeb449193415d1537ffbd4831cb6fe88f (patch)
tree80534daddd72b51f370942ca16b483b479a6e6c2 /modules/gallery/tests/Cache_Test.php
parent46ba61da0ffd1fc15899d51bcd2a6ba70c831900 (diff)
parentea5a4e6cfed888a562216e24125d7b703393bc67 (diff)
git-pulled, but had to manuall fix some conflicts.
Diffstat (limited to 'modules/gallery/tests/Cache_Test.php')
-rw-r--r--modules/gallery/tests/Cache_Test.php20
1 files changed, 0 insertions, 20 deletions
diff --git a/modules/gallery/tests/Cache_Test.php b/modules/gallery/tests/Cache_Test.php
index 4c65698a..e8d8b6f4 100644
--- a/modules/gallery/tests/Cache_Test.php
+++ b/modules/gallery/tests/Cache_Test.php
@@ -85,26 +85,6 @@ class Cache_Test extends Gallery_Unit_Test_Case {
$this->assert_equal(array($id3 => $value3), $data, "Expected id3");
}
- public function cache_delete_expired_test() {
- $id1 = md5(rand());
- $value1 = array("field1" => "value1", "field2" => "value2");
- $this->_driver->set(array($id1 => $value1), array("tag1", "tag2"), -84600);
-
- $id2 = md5(rand());
- $value2 = array("field3" => "value3", "field4" => "value4");
- $this->_driver->set(array($id2 => $value2), array("tag2", "tag3"), -846000);
-
- $id3 = md5(rand());
- $value3 = array("field5" => "value5", "field6" => "value6");
- $this->_driver->set(array($id3 => $value3), array("tag3", "tag4"), -84600);
-
- $data = $this->_driver->delete_expired();
-
- $this->assert_false($this->_driver->exists($id1), "$id1 should have been deleted");
- $this->assert_false($this->_driver->exists($id2), "$id2 should have been deleted");
- $this->assert_false($this->_driver->exists($id3), "$id3 should have been deleted");
- }
-
public function cache_delete_id_test() {
$id1 = md5(rand());
$value1 = array("field1" => "value1", "field2" => "value2");