@@ -138,25 +138,28 @@ public function testDate($file, $articles)
138138 public function authorProvider ()
139139 {
140140 return [
141- ['Articles/diffbot-sitepoint-basic.json ' , "Bruno Skvorc " ],
142- ['Articles/diffbot-sitepoint-extended.json ' , "Bruno Skvorc " ],
143- ['Articles/apple-watch-verge-basic.json ' , null ],
141+ ['Articles/diffbot-sitepoint-basic.json ' , "Bruno Skvorc " , " http://www.sitepoint.com/author/bskvorc/ " ],
142+ ['Articles/diffbot-sitepoint-extended.json ' , "Bruno Skvorc " , " http://www.sitepoint.com/author/bskvorc/ " ],
143+ ['Articles/apple-watch-verge-basic.json ' , null , null ],
144144 // Diffbot failed to detect this on April 12th
145- ['Articles/apple-watch-verge-extended.json ' , null ]
145+ ['Articles/apple-watch-verge-extended.json ' , null , null ]
146146 ];
147147 }
148148
149149 /**
150150 * @param $file
151151 * @param $articles
152+ * @param $url
152153 * @dataProvider authorProvider
153154 */
154- public function testAuthor ($ file , $ articles )
155+ public function testAuthor ($ file , $ articles, $ url )
155156 {
156157 $ articles = (is_array ($ articles )) ? $ articles : [$ articles ];
158+ $ url = (is_array ($ url )) ? $ url : [$ url ];
157159 /** @var Article $entity */
158160 foreach ($ this ->ei ($ file ) as $ i => $ entity ) {
159161 $ this ->assertEquals ($ articles [$ i ], $ entity ->getAuthor ());
162+ $ this ->assertEquals ($ url [$ i ], $ entity ->getAuthorUrl ());
160163 }
161164 }
162165
0 commit comments