aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-05-25 13:39:31 +0200
committerGitHub <noreply@github.com>2017-05-25 13:39:31 +0200
commit7481dd6e66c132ae064613de19e73dab0ca2de19 (patch)
treeae99823d461435577abd25b8bb24ef07692b99a1 /tests
parent61c15aa5554431893ea5ebe800a9a625dca5aff9 (diff)
parent6ccd0b218fbd34de750f55b78f3dc43bb3d9fa8e (diff)
downloadShaarli-7481dd6e66c132ae064613de19e73dab0ca2de19.tar.gz
Shaarli-7481dd6e66c132ae064613de19e73dab0ca2de19.tar.zst
Shaarli-7481dd6e66c132ae064613de19e73dab0ca2de19.zip
Merge pull request #878 from Lucas-C/master
Adding the ability to display subtags in the tagcloud
Diffstat (limited to 'tests')
-rw-r--r--tests/LinkDBTest.php31
1 files changed, 29 insertions, 2 deletions
diff --git a/tests/LinkDBTest.php b/tests/LinkDBTest.php
index 7bf98f92..2523467d 100644
--- a/tests/LinkDBTest.php
+++ b/tests/LinkDBTest.php
@@ -297,7 +297,7 @@ class LinkDBTest extends PHPUnit_Framework_TestCase
297 'sTuff' => 2, 297 'sTuff' => 2,
298 'ut' => 1, 298 'ut' => 1,
299 ), 299 ),
300 self::$publicLinkDB->allTags() 300 self::$publicLinkDB->linksCountPerTag()
301 ); 301 );
302 302
303 $this->assertEquals( 303 $this->assertEquals(
@@ -325,7 +325,34 @@ class LinkDBTest extends PHPUnit_Framework_TestCase
325 'tag4' => 1, 325 'tag4' => 1,
326 'ut' => 1, 326 'ut' => 1,
327 ), 327 ),
328 self::$privateLinkDB->allTags() 328 self::$privateLinkDB->linksCountPerTag()
329 );
330 $this->assertEquals(
331 array(
332 'web' => 4,
333 'cartoon' => 2,
334 'gnu' => 1,
335 'dev' => 1,
336 'samba' => 1,
337 'media' => 1,
338 'html' => 1,
339 'w3c' => 1,
340 'css' => 1,
341 'Mercurial' => 1,
342 '.hidden' => 1,
343 'hashtag' => 1,
344 ),
345 self::$privateLinkDB->linksCountPerTag(['web'])
346 );
347 $this->assertEquals(
348 array(
349 'web' => 1,
350 'html' => 1,
351 'w3c' => 1,
352 'css' => 1,
353 'Mercurial' => 1,
354 ),
355 self::$privateLinkDB->linksCountPerTag(['web'], 'private')
329 ); 356 );
330 } 357 }
331 358