@@ -276,13 +276,18 @@ public function testGenerateDocumentMultilangLocaleNomatch()
276
276
}
277
277
278
278
/**
279
+ * Generate without any information.
280
+ *
279
281
* @expectedException \Symfony\Component\Routing\Exception\RouteNotFoundException
280
282
*/
281
283
public function testGenerateNoContent ()
282
284
{
283
285
$ this ->generator ->generate ('' , array ());
284
286
}
287
+
285
288
/**
289
+ * Generate with an object that is neither a route nor route aware.
290
+ *
286
291
* @expectedException \Symfony\Component\Routing\Exception\RouteNotFoundException
287
292
*/
288
293
public function testGenerateInvalidContent ()
@@ -291,6 +296,8 @@ public function testGenerateInvalidContent()
291
296
}
292
297
293
298
/**
299
+ * Generate with a content_id but there is no content repository.
300
+ *
294
301
* @expectedException \Symfony\Component\Routing\Exception\RouteNotFoundException
295
302
*/
296
303
public function testGenerateNoContentRepository ()
@@ -303,6 +310,8 @@ public function testGenerateNoContentRepository()
303
310
}
304
311
305
312
/**
313
+ * Generate with content_id but the content is not found.
314
+ *
306
315
* @expectedException \Symfony\Component\Routing\Exception\RouteNotFoundException
307
316
*/
308
317
public function testGenerateNoContentFoundInRepository ()
@@ -323,6 +332,8 @@ public function testGenerateNoContentFoundInRepository()
323
332
}
324
333
325
334
/**
335
+ * Generate with content_id but the object at id is not route aware.
336
+ *
326
337
* @expectedException \Symfony\Component\Routing\Exception\RouteNotFoundException
327
338
*/
328
339
public function testGenerateWrongContentClassInRepository ()
@@ -343,6 +354,8 @@ public function testGenerateWrongContentClassInRepository()
343
354
}
344
355
345
356
/**
357
+ * Generate from a content that has no routes associated.
358
+ *
346
359
* @expectedException \Symfony\Component\Routing\Exception\RouteNotFoundException
347
360
*/
348
361
public function testGenerateNoRoutes ()
@@ -354,6 +367,8 @@ public function testGenerateNoRoutes()
354
367
$ this ->generator ->generate ($ this ->contentDocument );
355
368
}
356
369
/**
370
+ * Generate from a content that returns something that is not a route as route.
371
+ *
357
372
* @expectedException \Symfony\Component\Routing\Exception\RouteNotFoundException
358
373
*/
359
374
public function testGenerateInvalidRoute ()
0 commit comments