Hi,
This is typical web test case in the documentation of Symfony
class DemoControllerTest extends WebTestCase{
public function testIndex()
{
$client = static::createClient();
$crawler = $client->request('GET', '*/demo/hello/Fabien*');
$this->assertGreaterThan(0, $crawler->filter('html:contains("Hello Fabien")')->count());
}}
My question is, is there any way to instead of hardcoded urls (/demo/hello/Fabien) use the configuration values for the urls?
I think it would be much better because if I change the url name for /demo for /demo-something-else the test will fail.
Thanks in advance