summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-12-18 11:29:43 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-12-18 11:29:43 +0000
commit1917aeaab29438639b5305b6d9c4957f1341863f (patch)
tree0f84c7c993500b0f22c2d15eca8f6ebff1fb5559
parent4d122aa3fca560f9b93bfb5a8abe6feee96d9e61 (diff)
downloadsemanticscuttle-1917aeaab29438639b5305b6d9c4957f1341863f.tar.gz
semanticscuttle-1917aeaab29438639b5305b6d9c4957f1341863f.tar.bz2
Minor Fix: improve cache test
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@205 b3834d28-1941-0410-a4f8-b48e95affb8f
-rw-r--r--tests/tagsCacheTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tagsCacheTest.php b/tests/tagsCacheTest.php
index f08de05..595afb9 100644
--- a/tests/tagsCacheTest.php
+++ b/tests/tagsCacheTest.php
@@ -163,6 +163,10 @@ class TagsCacheTest extends PHPUnit_Framework_TestCase
$this->assertEquals(array('b', 'c', 'd', 'e'), $tts->getAllLinkedTags('a', '>', 1));
$this->assertEquals(array('d', 'e'), $tts->getAllLinkedTags('c', '>', 1));
+ // check that result comes from cache (artificial changes in cache must appear in result)
+ $tcs->removeChild('a', 'e', 1);
+ $this->assertEquals(array('b', 'c', 'd'), $tts->getAllLinkedTags('a', '>', 1));
+
//cache must be deleted for user when links are modified
$tts->addLinkedTags('a', 'f', '=', 1);
$this->assertEquals(array(), $tcs->getChildren('a', 1));