0

I have a behat+mink scenario where a step visits a URL (mink), and the controller

  • puts something into the a service in the container
  • performs a redirect to another URL

The problem is that the controller redirect resets the container, so the service is re-constructed, and the following behat step cannot access it anymore

Is there a way to access the container ?

E Ciotti
  • 4,740
  • 1
  • 25
  • 17

1 Answers1

1

In CommonContexts there's a MinkRedirectContext. You can use it to prevent redirection. This way you'll be able to inspect container before the redirection is made.

Jakub Zalas
  • 35,761
  • 9
  • 93
  • 125