diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-01-11 09:34:32 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-01-11 09:34:32 +0000 |
commit | 0bfd4e4d3f4fa3db0b2de50277b0cfbddcf6efdf (patch) | |
tree | 02a9e7a282f8e5c46596d728e76ec72170e38a9a /tests | |
parent | cfbf95ebe5417875e739eacf344304f478d855c0 (diff) | |
download | semanticscuttle-0bfd4e4d3f4fa3db0b2de50277b0cfbddcf6efdf.tar.gz semanticscuttle-0bfd4e4d3f4fa3db0b2de50277b0cfbddcf6efdf.tar.bz2 |
Interface design: structured tags on frontpage and tag pages + permission control added to add and delete tag links
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@10 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tag2TagTest.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/tag2TagTest.php b/tests/tag2TagTest.php index 6660761..3a8466f 100644 --- a/tests/tag2TagTest.php +++ b/tests/tag2TagTest.php @@ -57,6 +57,9 @@ class Tag2TagTest extends PHPUnit_Framework_TestCase $this->assertEquals(2, sizeof($orphewTags)); $this->assertSame('a', $orphewTags[0]['tag']); $this->assertSame('f', $orphewTags[1]['tag']); + $orphewTags = $tts->getOrphewTags('>'); + $this->assertEquals(2, sizeof($orphewTags)); + $this->assertSame('f', $orphewTags[0]['tag']); $linkedTags = $tts->getLinkedTags('a', '>', 1); $this->assertSame(array('b', 'c'), $linkedTags); @@ -66,6 +69,8 @@ class Tag2TagTest extends PHPUnit_Framework_TestCase $tts->removeLinkedTags('a', 'c', '>', 1); $linkedTags = $tts->getLinkedTags('a', '>', 1); $this->assertEquals(0, sizeof($linkedTags)); + $linkedTags = $tts->getLinkedTags('a', '>'); + $this->assertSame(array('b', 'c', 'd'), $linkedTags); } public function testAddLinkedTagsThroughBookmarking() |