diff options
author | 2008-04-17 08:02:09 +0000 | |
---|---|---|
committer | 2008-04-17 08:02:09 +0000 | |
commit | 3e2854611b5d73687a701b24dc58fd56d79be09d (patch) | |
tree | 4fad2b7ffa9e126613519a5e6d08a491d4723284 /tests/tag2TagTest.php | |
parent | 39cf52851529c0d91d69307186c6bf5e9f362735 (diff) | |
download | scuttle-3e2854611b5d73687a701b24dc58fd56d79be09d.tar.gz scuttle-3e2854611b5d73687a701b24dc58fd56d79be09d.zip |
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
Diffstat (limited to 'tests/tag2TagTest.php')
-rw-r--r-- | tests/tag2TagTest.php | 21 |
1 files changed, 19 insertions, 2 deletions
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); + + }*/ } ?> |