Closed megazoll closed 13 years ago
SymfonyDriver
should conform DriverInterface
. In your case it's notSymfonyDriver
is capable to do only in-kernel requests. It's Symfony2 BrowserKit limitation. If you want cross-domain requests - use GoutteDriver
.Maybe it can extract url filtration code into a protected method, which can be overriden?
P.S. Our routing process requests with domain, without this filter tests works.
@everzet it does not break the interface as the argument is optional
@stof oh, somehow missed that it has default value :-/ But anyway, adding this second argument means that you need to add it to the Mink\Session
also, which is wrong, cuz only SymfonyDriver
really needs it. It looks like a hack really.
@megazoll this should fix your problem: https://github.com/Behat/MinkBundle/commit/db097bafded7655359bee7037001f74efe510df0
@everzet thanks, it's works.
We have custom routing with subdomains and we want test that.