atoum / AtoumBundle

This bundle provides a simple integration of atoum into Symfony 2.
MIT License
45 stars 25 forks source link

Provide router in WebTestCase #71

Open marmotz opened 10 years ago

marmotz commented 10 years ago

Is it possible to provide a shortcut to router $this->getKernel()->getContainer()->get('router') or directly to generate method ?

We could do something like this:

$this->GET($this->generateUrl('my_route', uniqid()))
jubianchi commented 10 years ago

:+1:

marmotz commented 10 years ago

@FlorianLB was not happy for this request so I ask publicly to have a return from community

jubianchi commented 10 years ago

ping @FlorianLB why ?

FlorianLB commented 10 years ago

I said that its a bad idea to use this method in a pure functional scenario (in which you have to use exact urls) but it can make sense if you want to test only the subpart router/controller.

:+1: