aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/legacy/LegacyLinkDBTest.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-10-12 12:23:57 +0200
committerArthurHoaro <arthur@hoa.ro>2020-10-16 20:31:49 +0200
commitf1a148ab92c061ac129b5b2976de02d45b6a71e7 (patch)
tree89b085ac6c4cd7608526f855f452d1a797dbb333 /tests/legacy/LegacyLinkDBTest.php
parent4e3875c0ce7f3b17e3d358dc5ecb1f8bed64546b (diff)
downloadShaarli-f1a148ab92c061ac129b5b2976de02d45b6a71e7.tar.gz
Shaarli-f1a148ab92c061ac129b5b2976de02d45b6a71e7.tar.zst
Shaarli-f1a148ab92c061ac129b5b2976de02d45b6a71e7.zip
add search highlight unit tests
Diffstat (limited to 'tests/legacy/LegacyLinkDBTest.php')
-rw-r--r--tests/legacy/LegacyLinkDBTest.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/legacy/LegacyLinkDBTest.php b/tests/legacy/LegacyLinkDBTest.php
index df2cad62..5c3fd425 100644
--- a/tests/legacy/LegacyLinkDBTest.php
+++ b/tests/legacy/LegacyLinkDBTest.php
@@ -296,6 +296,10 @@ class LegacyLinkDBTest extends \Shaarli\TestCase
296 // They need to be grouped with the first case found - order by date DESC: `sTuff`. 296 // They need to be grouped with the first case found - order by date DESC: `sTuff`.
297 'sTuff' => 2, 297 'sTuff' => 2,
298 'ut' => 1, 298 'ut' => 1,
299 'assurance' => 1,
300 'coding-style' => 1,
301 'quality' => 1,
302 'standards' => 1,
299 ), 303 ),
300 self::$publicLinkDB->linksCountPerTag() 304 self::$publicLinkDB->linksCountPerTag()
301 ); 305 );
@@ -324,6 +328,10 @@ class LegacyLinkDBTest extends \Shaarli\TestCase
324 'tag3' => 1, 328 'tag3' => 1,
325 'tag4' => 1, 329 'tag4' => 1,
326 'ut' => 1, 330 'ut' => 1,
331 'assurance' => 1,
332 'coding-style' => 1,
333 'quality' => 1,
334 'standards' => 1,
327 ), 335 ),
328 self::$privateLinkDB->linksCountPerTag() 336 self::$privateLinkDB->linksCountPerTag()
329 ); 337 );
@@ -544,6 +552,10 @@ class LegacyLinkDBTest extends \Shaarli\TestCase
544 'tag4' => 1, 552 'tag4' => 1,
545 'ut' => 1, 553 'ut' => 1,
546 'w3c' => 1, 554 'w3c' => 1,
555 'assurance' => 1,
556 'coding-style' => 1,
557 'quality' => 1,
558 'standards' => 1,
547 ]; 559 ];
548 $tags = self::$privateLinkDB->linksCountPerTag(); 560 $tags = self::$privateLinkDB->linksCountPerTag();
549 561