From 89baf23ddfaf82cc663e26f76c307ef8e4bf4b02 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 12 Mar 2016 17:54:56 +0100 Subject: FeedBuilder unit tests --- tests/utils/ReferenceLinkDB.php | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'tests/utils/ReferenceLinkDB.php') diff --git a/tests/utils/ReferenceLinkDB.php b/tests/utils/ReferenceLinkDB.php index 61faef05..dc4f5dfa 100644 --- a/tests/utils/ReferenceLinkDB.php +++ b/tests/utils/ReferenceLinkDB.php @@ -4,6 +4,8 @@ */ class ReferenceLinkDB { + public static $NB_LINKS_TOTAL = 7; + private $_links = array(); private $_publicCount = 0; private $_privateCount = 0; @@ -13,6 +15,15 @@ class ReferenceLinkDB */ function __construct() { + $this->addLink( + 'Link title: @website', + '?WDWyig', + 'Stallman has a beard and is part of the Free Software Foundation (or not). Seriously, read this.', + 0, + '20150310_114651', + 'stuff' + ); + $this->addLink( 'Free as in Freedom 2.0 @website', 'https://static.fsf.org/nosvn/faif-2.0.pdf', @@ -22,15 +33,6 @@ class ReferenceLinkDB 'free gnu software stallman -exclude stuff' ); - $this->addLink( - 'Link title: @website', - 'local', - 'Stallman has a beard and is part of the Free Software Foundation (or not). Seriously, read this.', - 0, - '20150310_114651', - 'stuff' - ); - $this->addLink( 'MediaGoblin', 'http://mediagoblin.org/', -- cgit v1.2.3