So I've made an integration test where my
setUp() method add a query parameter to the request like this:
However, the tests that run after this test will have their request still containing the query parameter.
The only way I managed to avoid that was by adding the following line in my
tearDown() method :
I want to know what is the proper Magento way of doing that ?
I tried calling:
But I get the following error:
Invalid value passed to setQuery(); must be either array of values or key/value pair
I also tried:
No error but still does not remove the query parameter.
Even reinit the entire request would be fine if that's possible.