aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/LinkDBTest.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-04-14 17:59:37 +0200
committerArthurHoaro <arthur@hoa.ro>2016-05-31 09:09:32 +0200
commitb1eb5d1d31e3ea256501c08a3ed9aa7183b27466 (patch)
treeda39f2c91bf636ff7a9d0890ec70601b2ca92797 /tests/LinkDBTest.php
parent11609d9fd8ba53f049e6c913d8e3affab6cfc9ce (diff)
downloadShaarli-b1eb5d1d31e3ea256501c08a3ed9aa7183b27466.tar.gz
Shaarli-b1eb5d1d31e3ea256501c08a3ed9aa7183b27466.tar.zst
Shaarli-b1eb5d1d31e3ea256501c08a3ed9aa7183b27466.zip
Fixes #497: ignore case difference between tags
While retrieving all tags, case differences will be ignored. This affects: * tag cloud * tag autocompletion
Diffstat (limited to 'tests/LinkDBTest.php')
-rw-r--r--tests/LinkDBTest.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/LinkDBTest.php b/tests/LinkDBTest.php
index 52d31400..8ffb1512 100644
--- a/tests/LinkDBTest.php
+++ b/tests/LinkDBTest.php
@@ -290,7 +290,9 @@ class LinkDBTest extends PHPUnit_Framework_TestCase
290 'stallman' => 1, 290 'stallman' => 1,
291 'free' => 1, 291 'free' => 1,
292 '-exclude' => 1, 292 '-exclude' => 1,
293 'stuff' => 2, 293 // The DB contains a link with `sTuff` and another one with `stuff` tag.
294 // They need to be grouped with the first case found (`sTuff`).
295 'sTuff' => 2,
294 ), 296 ),
295 self::$publicLinkDB->allTags() 297 self::$publicLinkDB->allTags()
296 ); 298 );
@@ -310,7 +312,7 @@ class LinkDBTest extends PHPUnit_Framework_TestCase
310 'w3c' => 1, 312 'w3c' => 1,
311 'css' => 1, 313 'css' => 1,
312 'Mercurial' => 1, 314 'Mercurial' => 1,
313 'stuff' => 2, 315 'sTuff' => 2,
314 '-exclude' => 1, 316 '-exclude' => 1,
315 '.hidden' => 1, 317 '.hidden' => 1,
316 ), 318 ),