From 9ccca40189652e529732683abcdf54fcf775c9ec Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 10 May 2016 23:18:04 +0200 Subject: Hashtag system * Hashtag are auto-linked with a filter search * Supports unicode * Compatible with markdown (excluded in code blocks) --- tests/LinkDBTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/LinkDBTest.php') 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 $link = self::$publicLinkDB->getLinkFromUrl('http://mediagoblin.org/'); $this->assertNotEquals(false, $link); - $this->assertEquals( + $this->assertContains( 'A free software media publishing platform', $link['description'] ); @@ -293,6 +293,7 @@ class LinkDBTest extends PHPUnit_Framework_TestCase // The DB contains a link with `sTuff` and another one with `stuff` tag. // They need to be grouped with the first case found (`sTuff`). 'sTuff' => 2, + 'hashtag' => 2, ), self::$publicLinkDB->allTags() ); @@ -315,6 +316,7 @@ class LinkDBTest extends PHPUnit_Framework_TestCase 'sTuff' => 2, '-exclude' => 1, '.hidden' => 1, + 'hashtag' => 2, ), self::$privateLinkDB->allTags() ); -- cgit v1.2.3