# Controller integration testing in v3.8

**URL:** <https://discourse.cakephp.org/t/controller-integration-testing-in-v3-8/6775>\
**Category:** Need Help\
**Created:** [October 17, 2019, 12:10pm UTC](https://discourse.cakephp.org/t/controller-integration-testing-in-v3-8/6775 "2019-10-17T12:10:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deanoj](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@deanoj](https://discourse.cakephp.org/u/deanoj)\
**Post date:** [October 17, 2019, 12:10pm UTC](https://discourse.cakephp.org/t/controller-integration-testing-in-v3-8/6775/1 "2019-10-17T12:10:16Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![deanoj](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@deanoj](https://discourse.cakephp.org/u/deanoj)\
**Post date:** [October 18, 2019, 9:37am UTC](https://discourse.cakephp.org/t/controller-integration-testing-in-v3-8/6775/2 "2019-10-18T09:37:07Z")

</div>

I ended up removing the names from the routes in my plugin. Not ideal but I spent too long trying to figure this out… any suggestions would be most helpful!
