From 3e2854611b5d73687a701b24dc58fd56d79be09d Mon Sep 17 00:00:00 2001 From: mensonge Date: Thu, 17 Apr 2008 08:02:09 +0000 Subject: New feature: menu box which displays tags included into the special tag menu [Config modified] git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@105 b3834d28-1941-0410-a4f8-b48e95affb8f --- tests/tag2TagTest.php | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/tag2TagTest.php b/tests/tag2TagTest.php index c356be8..70925bd 100644 --- a/tests/tag2TagTest.php +++ b/tests/tag2TagTest.php @@ -457,10 +457,27 @@ class Tag2TagTest extends PHPUnit_Framework_TestCase $linkedTags = $tts->getLinkedTags('b', '>', 2); $this->assertSame(array('a'), $linkedTags); - - //with stats } + + // Cannot be test because the function use GLOBALS variables + // not taken into account by tests + /*public function testMenuTags() + { + $tts = $this->tts; + $bs = $this->bs; + + $bs->addBookmark("http://site1.com", "title", "description", "status", array('menu>tag1'), null, false, false, 1); + $bs->addBookmark("http://site1.com", "title2", "description2", "status", array('menu>tag2>tag3'), null, false, false, 1); + $bs->addBookmark("http://site1.com", "title3", "description3", "status", array('menu>tag1', 'menu>tag4'), null, false, false, 2); + + $menuTags = $tts->getMenuTags($uId); + $this->assertEquals(3, sizeof($menuTags)); + $this->assertContains('tag1', $menuTags); + $this->assertContains('tag2', $menuTags); + $this->assertContains('tag4', $menuTags); + + }*/ } ?> -- cgit v1.2.3