We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5374f49 commit 61a2321Copy full SHA for 61a2321
src/Module/Nette.php
@@ -64,6 +64,9 @@ public function grabService($service)
64
65
public function seeRedirectTo($url)
66
{
67
+ if ($this->config['followRedirects']) {
68
+ $this->fail('Method seeRedirectTo only works when followRedirects option is disabled');
69
+ }
70
$request = $this->container->getByType('Nette\Http\IRequest');
71
$response = $this->container->getByType('Nette\Http\IResponse');
72
if ($response->getHeader('Location') !== $request->getUrl()->getHostUrl() . $url && $response->getHeader('Location') !== $url) {
0 commit comments