Hi, in earlier versions of cakePHP I would often write a test function like:
public function testIndex()
{
$this->setAdminUser();
$this->get('/admin/customers');
$this->assertResponseOk();
$this->get('/admin/customers');
$this->assertResponseOk();
}
However in v3.8 I now get a duplicate route exception. Anyone have any ideas on how to fix this?
Additional: This seems to be related to a custom Plugin I am loading - if I disable loading of the plugin in Application.php the issue goes away.
If I figure this out I will update this question with the solution…
Further update: It seems I am running in this issue: https://github.com/cakephp/cakephp/issues/12130
Worth mentioning this was a new application setup using v3.8 of CakePHP from the outset - so Application class was provided by default.