@@ -276,13 +276,18 @@ public function testGenerateDocumentMultilangLocaleNomatch()
276276 }
277277
278278 /**
279+ * Generate without any information.
280+ *
279281 * @expectedException \Symfony\Component\Routing\Exception\RouteNotFoundException
280282 */
281283 public function testGenerateNoContent ()
282284 {
283285 $ this ->generator ->generate ('' , array ());
284286 }
287+
285288 /**
289+ * Generate with an object that is neither a route nor route aware.
290+ *
286291 * @expectedException \Symfony\Component\Routing\Exception\RouteNotFoundException
287292 */
288293 public function testGenerateInvalidContent ()
@@ -291,6 +296,8 @@ public function testGenerateInvalidContent()
291296 }
292297
293298 /**
299+ * Generate with a content_id but there is no content repository.
300+ *
294301 * @expectedException \Symfony\Component\Routing\Exception\RouteNotFoundException
295302 */
296303 public function testGenerateNoContentRepository ()
@@ -303,6 +310,8 @@ public function testGenerateNoContentRepository()
303310 }
304311
305312 /**
313+ * Generate with content_id but the content is not found.
314+ *
306315 * @expectedException \Symfony\Component\Routing\Exception\RouteNotFoundException
307316 */
308317 public function testGenerateNoContentFoundInRepository ()
@@ -323,6 +332,8 @@ public function testGenerateNoContentFoundInRepository()
323332 }
324333
325334 /**
335+ * Generate with content_id but the object at id is not route aware.
336+ *
326337 * @expectedException \Symfony\Component\Routing\Exception\RouteNotFoundException
327338 */
328339 public function testGenerateWrongContentClassInRepository ()
@@ -343,6 +354,8 @@ public function testGenerateWrongContentClassInRepository()
343354 }
344355
345356 /**
357+ * Generate from a content that has no routes associated.
358+ *
346359 * @expectedException \Symfony\Component\Routing\Exception\RouteNotFoundException
347360 */
348361 public function testGenerateNoRoutes ()
@@ -354,6 +367,8 @@ public function testGenerateNoRoutes()
354367 $ this ->generator ->generate ($ this ->contentDocument );
355368 }
356369 /**
370+ * Generate from a content that returns something that is not a route as route.
371+ *
357372 * @expectedException \Symfony\Component\Routing\Exception\RouteNotFoundException
358373 */
359374 public function testGenerateInvalidRoute ()
0 commit comments