- sizeof(self::$privateLinkDB->filterSmallHash('Iblaah'))
- );
- }
-
- /**
- * Full-text search - result from a link's URL
- */
- public function testFilterFullTextURL()
- {
- $this->assertEquals(
- 2,
- sizeof(self::$publicLinkDB->filterFullText('ars.userfriendly.org'))
- );
- }
-
- /**
- * Full-text search - result from a link's title only
- */
- public function testFilterFullTextTitle()
- {
- // use miscellaneous cases
- $this->assertEquals(
- 2,
- sizeof(self::$publicLinkDB->filterFullText('userfriendly -'))
- );
- $this->assertEquals(
- 2,
- sizeof(self::$publicLinkDB->filterFullText('UserFriendly -'))
- );
- $this->assertEquals(
- 2,
- sizeof(self::$publicLinkDB->filterFullText('uSeRFrIendlY -'))
- );
-
- // use miscellaneous case and offset
- $this->assertEquals(
- 2,
- sizeof(self::$publicLinkDB->filterFullText('RFrIendL'))
- );
- }
-
- /**
- * Full-text search - result from the link's description only
- */
- public function testFilterFullTextDescription()
- {
- $this->assertEquals(
- 1,
- sizeof(self::$publicLinkDB->filterFullText('media publishing'))
- );
- }
-
- /**
- * Full-text search - result from the link's tags only
- */
- public function testFilterFullTextTags()
- {
- $this->assertEquals(
- 2,
- sizeof(self::$publicLinkDB->filterFullText('gnu'))
- );
- }
-
- /**
- * Full-text search - result set from mixed sources
- */
- public function testFilterFullTextMixed()
- {
- $this->assertEquals(
- 2,
- sizeof(self::$publicLinkDB->filterFullText('free software'))