aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-05-11 00:05:22 +0200
committerArthurHoaro <arthur@hoa.ro>2016-05-13 08:48:23 +0200
commit141a86c503af8e314381b3ee39ba4287fdfac63e (patch)
tree86cb3f8d8998bb924216cdee1101fb8ea5bd96e4 /tests
parent03eb19ac60d54442332077fa35a9b0d4e33df365 (diff)
downloadShaarli-141a86c503af8e314381b3ee39ba4287fdfac63e.tar.gz
Shaarli-141a86c503af8e314381b3ee39ba4287fdfac63e.tar.zst
Shaarli-141a86c503af8e314381b3ee39ba4287fdfac63e.zip
Add private link counter
Diffstat (limited to 'tests')
-rw-r--r--tests/LinkUtilsTest.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/LinkUtilsTest.php b/tests/LinkUtilsTest.php
index 609a80cb..d1b022fd 100644
--- a/tests/LinkUtilsTest.php
+++ b/tests/LinkUtilsTest.php
@@ -84,4 +84,13 @@ class LinkUtilsTest extends PHPUnit_Framework_TestCase
84 $html = '<html><meta>stuff</meta><meta charset=""/></html>'; 84 $html = '<html><meta>stuff</meta><meta charset=""/></html>';
85 $this->assertFalse(html_extract_charset($html)); 85 $this->assertFalse(html_extract_charset($html));
86 } 86 }
87
88 /**
89 * Test count_private.
90 */
91 public function testCountPrivateLinks()
92 {
93 $refDB = new ReferenceLinkDB();
94 $this->assertEquals($refDB->countPrivateLinks(), count_private($refDB->getLinks()));
95 }
87} 96}