diff options
author | Arthur <arthur@hoa.ro> | 2016-05-14 11:11:11 +0200 |
---|---|---|
committer | Arthur <arthur@hoa.ro> | 2016-05-14 11:11:11 +0200 |
commit | 3fdcc7bd47114776a5a8a280783529ee2dd690a1 (patch) | |
tree | d5b9497bd30333e799d93d2fe8b628a4c7fbc1d9 /tests/LinkUtilsTest.php | |
parent | 52ccf0d7ee25eb0b6fc405aafcf7211ef07307e1 (diff) | |
parent | 141a86c503af8e314381b3ee39ba4287fdfac63e (diff) | |
download | Shaarli-3fdcc7bd47114776a5a8a280783529ee2dd690a1.tar.gz Shaarli-3fdcc7bd47114776a5a8a280783529ee2dd690a1.tar.zst Shaarli-3fdcc7bd47114776a5a8a280783529ee2dd690a1.zip |
Merge pull request #560 from ArthurHoaro/nb-private-shaare
Private links counter in the header
Diffstat (limited to 'tests/LinkUtilsTest.php')
-rw-r--r-- | tests/LinkUtilsTest.php | 9 |
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 | } |