aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/LinkDBTest.php
diff options
context:
space:
mode:
authorArthur <arthur@hoa.ro>2016-07-09 07:36:23 +0200
committerGitHub <noreply@github.com>2016-07-09 07:36:23 +0200
commit0c4c7ae818336d5b0f94562e551ca1a3f34d3435 (patch)
tree5f0da042d12c10c8e09deb788c928e0644e9cdcb /tests/LinkDBTest.php
parent649af5b501d2a90448242f53764ff693e9854039 (diff)
parent9ccca40189652e529732683abcdf54fcf775c9ec (diff)
downloadShaarli-0c4c7ae818336d5b0f94562e551ca1a3f34d3435.tar.gz
Shaarli-0c4c7ae818336d5b0f94562e551ca1a3f34d3435.tar.zst
Shaarli-0c4c7ae818336d5b0f94562e551ca1a3f34d3435.zip
Merge pull request #558 from ArthurHoaro/hashtag4
Hashtag system
Diffstat (limited to 'tests/LinkDBTest.php')
-rw-r--r--tests/LinkDBTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/LinkDBTest.php b/tests/LinkDBTest.php
index 9c64188f..46956f20 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 );