diff options
author | ArthurHoaro <arthur@hoa.ro> | 2016-05-10 23:18:04 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2016-06-06 21:04:43 +0200 |
commit | 9ccca40189652e529732683abcdf54fcf775c9ec (patch) | |
tree | 9deda85d287dcba664bbba2f0bf9228e6118fbad /tests/LinkDBTest.php | |
parent | bb9ca54838e2f877635197541e8439171c83d5dc (diff) | |
download | Shaarli-9ccca40189652e529732683abcdf54fcf775c9ec.tar.gz Shaarli-9ccca40189652e529732683abcdf54fcf775c9ec.tar.zst Shaarli-9ccca40189652e529732683abcdf54fcf775c9ec.zip |
Hashtag system
* Hashtag are auto-linked with a filter search
* Supports unicode
* Compatible with markdown (excluded in code blocks)
Diffstat (limited to 'tests/LinkDBTest.php')
-rw-r--r-- | tests/LinkDBTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/LinkDBTest.php b/tests/LinkDBTest.php index 30ea4e01..0db81fd6 100644 --- a/tests/LinkDBTest.php +++ b/tests/LinkDBTest.php | |||
@@ -256,7 +256,7 @@ class LinkDBTest extends PHPUnit_Framework_TestCase | |||
256 | $link = self::$publicLinkDB->getLinkFromUrl('http://mediagoblin.org/'); | 256 | $link = self::$publicLinkDB->getLinkFromUrl('http://mediagoblin.org/'); |
257 | 257 | ||
258 | $this->assertNotEquals(false, $link); | 258 | $this->assertNotEquals(false, $link); |
259 | $this->assertEquals( | 259 | $this->assertContains( |
260 | 'A free software media publishing platform', | 260 | 'A free software media publishing platform', |
261 | $link['description'] | 261 | $link['description'] |
262 | ); | 262 | ); |
@@ -293,6 +293,7 @@ class LinkDBTest extends PHPUnit_Framework_TestCase | |||
293 | // The DB contains a link with `sTuff` and another one with `stuff` tag. | 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`). | 294 | // They need to be grouped with the first case found (`sTuff`). |
295 | 'sTuff' => 2, | 295 | 'sTuff' => 2, |
296 | 'hashtag' => 2, | ||
296 | ), | 297 | ), |
297 | self::$publicLinkDB->allTags() | 298 | self::$publicLinkDB->allTags() |
298 | ); | 299 | ); |
@@ -315,6 +316,7 @@ class LinkDBTest extends PHPUnit_Framework_TestCase | |||
315 | 'sTuff' => 2, | 316 | 'sTuff' => 2, |
316 | '-exclude' => 1, | 317 | '-exclude' => 1, |
317 | '.hidden' => 1, | 318 | '.hidden' => 1, |
319 | 'hashtag' => 2, | ||
318 | ), | 320 | ), |
319 | self::$privateLinkDB->allTags() | 321 | self::$privateLinkDB->allTags() |
320 | ); | 322 | ); |