Closed nikophil closed 1 year ago
I think https://github.com/Happyr/service-mocking could help here. Or what about $browser->disableReboot()
?
BTW, the built container should be considered immutable - calling set()
could have unintended consequences I believe. I think the service mocking library is your best bet. It allows you to swap/mock services and these swapped/mocked services will be used for the remainder of your test - even between kernel reboots/container resets.
hi @kbond
thanks for your quick answer, $browser->disableReboot()
resovled the problem. I know it's not the best solution but it's a quick win.
:pray:
Hello,
I have troubles mocking some
HttpClient
instance with the browser after validating a form.Here is the code:
Adding some dumps give me some clues
any ideas?
I saw this issue which is somehow related, but I don't even know where I could reuse the same "mocked container" or something else...
thanks for your help!