aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/utils/ReferenceLinkDB.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/utils/ReferenceLinkDB.php')
-rw-r--r--tests/utils/ReferenceLinkDB.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/utils/ReferenceLinkDB.php b/tests/utils/ReferenceLinkDB.php
index 6b16c9e8..36d58c68 100644
--- a/tests/utils/ReferenceLinkDB.php
+++ b/tests/utils/ReferenceLinkDB.php
@@ -21,7 +21,7 @@ class ReferenceLinkDB
21 '?WDWyig', 21 '?WDWyig',
22 'Stallman has a beard and is part of the Free Software Foundation (or not). Seriously, read this. #hashtag', 22 'Stallman has a beard and is part of the Free Software Foundation (or not). Seriously, read this. #hashtag',
23 0, 23 0,
24 DateTime::createFromFormat('Ymd_His', '20150310_114651'), 24 DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, '20150310_114651'),
25 'sTuff', 25 'sTuff',
26 null, 26 null,
27 'WDWyig' 27 'WDWyig'
@@ -33,7 +33,7 @@ class ReferenceLinkDB
33 '?WDWyig', 33 '?WDWyig',
34 'Used to test links reordering.', 34 'Used to test links reordering.',
35 0, 35 0,
36 DateTime::createFromFormat('Ymd_His', '20100310_101010'), 36 DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, '20100310_101010'),
37 'ut' 37 'ut'
38 ); 38 );
39 39
@@ -43,9 +43,9 @@ class ReferenceLinkDB
43 'https://static.fsf.org/nosvn/faif-2.0.pdf', 43 'https://static.fsf.org/nosvn/faif-2.0.pdf',
44 'Richard Stallman and the Free Software Revolution. Read this. #hashtag', 44 'Richard Stallman and the Free Software Revolution. Read this. #hashtag',
45 0, 45 0,
46 DateTime::createFromFormat('Ymd_His', '20150310_114633'), 46 DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, '20150310_114633'),
47 'free gnu software stallman -exclude stuff hashtag', 47 'free gnu software stallman -exclude stuff hashtag',
48 DateTime::createFromFormat('Ymd_His', '20160803_093033') 48 DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, '20160803_093033')
49 ); 49 );
50 50
51 $this->addLink( 51 $this->addLink(
@@ -54,7 +54,7 @@ class ReferenceLinkDB
54 'http://mediagoblin.org/', 54 'http://mediagoblin.org/',
55 'A free software media publishing platform #hashtagOther', 55 'A free software media publishing platform #hashtagOther',
56 0, 56 0,
57 DateTime::createFromFormat('Ymd_His', '20130614_184135'), 57 DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, '20130614_184135'),
58 'gnu media web .hidden hashtag', 58 'gnu media web .hidden hashtag',
59 null, 59 null,
60 'IuWvgA' 60 'IuWvgA'
@@ -66,7 +66,7 @@ class ReferenceLinkDB
66 'https://dvcs.w3.org/hg/markup-validator/summary', 66 'https://dvcs.w3.org/hg/markup-validator/summary',
67 'Mercurial repository for the W3C Validator #private', 67 'Mercurial repository for the W3C Validator #private',
68 1, 68 1,
69 DateTime::createFromFormat('Ymd_His', '20141125_084734'), 69 DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, '20141125_084734'),
70 'css html w3c web Mercurial' 70 'css html w3c web Mercurial'
71 ); 71 );
72 72
@@ -76,7 +76,7 @@ class ReferenceLinkDB
76 'http://ars.userfriendly.org/cartoons/?id=20121206', 76 'http://ars.userfriendly.org/cartoons/?id=20121206',
77 'Naming conventions... #private', 77 'Naming conventions... #private',
78 0, 78 0,
79 DateTime::createFromFormat('Ymd_His', '20121206_142300'), 79 DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, '20121206_142300'),
80 'dev cartoon web' 80 'dev cartoon web'
81 ); 81 );
82 82
@@ -86,7 +86,7 @@ class ReferenceLinkDB
86 'http://ars.userfriendly.org/cartoons/?id=20010306', 86 'http://ars.userfriendly.org/cartoons/?id=20010306',
87 'Tropical printing', 87 'Tropical printing',
88 0, 88 0,
89 DateTime::createFromFormat('Ymd_His', '20121206_172539'), 89 DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, '20121206_172539'),
90 'samba cartoon web' 90 'samba cartoon web'
91 ); 91 );
92 92
@@ -96,7 +96,7 @@ class ReferenceLinkDB
96 'http://geek-and-poke.com/', 96 'http://geek-and-poke.com/',
97 '', 97 '',
98 1, 98 1,
99 DateTime::createFromFormat('Ymd_His', '20121206_182539'), 99 DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, '20121206_182539'),
100 'dev cartoon tag1 tag2 tag3 tag4 ' 100 'dev cartoon tag1 tag2 tag3 tag4 '
101 ); 101 );
102 } 102 }
@@ -115,7 +115,7 @@ class ReferenceLinkDB
115 'tags' => $tags, 115 'tags' => $tags,
116 'created' => $date, 116 'created' => $date,
117 'updated' => $updated, 117 'updated' => $updated,
118 'shorturl' => $shorturl ? $shorturl : smallHash($date->format('Ymd_His') . $id), 118 'shorturl' => $shorturl ? $shorturl : smallHash($date->format(LinkDB::LINK_DATE_FORMAT) . $id),
119 ); 119 );
120 $this->_links[$id] = $link; 120 $this->_links[$id] = $link;
121 121