Why are you calling refreshApplication() what do you achieve with it?
Jul 15, 2015
4
Level 1
Multiple calls in one test without using $this->refreshApplication()
I'm going to test a procedure and want to call 3 of my API endpoints sequentially which is discussed here . The problem is I have to call $this->refreshApplication() after each $this->call() to make it work, by calling $this->refreshApplication the database transaction rolls back and ruins my test .
How can I solve this ? is there any better workaround instead of calling $this->refreshApplication() ?
Thanks
Please or to participate in this conversation.