From 0bfd4e4d3f4fa3db0b2de50277b0cfbddcf6efdf Mon Sep 17 00:00:00 2001 From: mensonge Date: Fri, 11 Jan 2008 09:34:32 +0000 Subject: 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 --- tests/tag2TagTest.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/tag2TagTest.php') 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() -- cgit v1.2.3-54-g00ecf