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 a98c30e commit ff5cd9cCopy full SHA for ff5cd9c
src/Module/NetteApplicationModule.php
@@ -58,9 +58,20 @@ public function _after(TestInterface $test)
58
$_COOKIE = [];
59
}
60
61
+ /**
62
+ * @param bool $followRedirects
63
+ */
64
+ public function followRedirects($followRedirects)
65
+ {
66
+ $this->client->followRedirects($followRedirects);
67
+ }
68
+
69
70
+ * @param string $url
71
72
public function seeRedirectTo($url)
73
{
- if ($this->config['followRedirects']) {
74
+ if ($this->client->isFollowingRedirects()) {
75
$this->fail('Method seeRedirectTo only works when followRedirects option is disabled');
76
77
$request = $this->getModule(NetteDIModule::class)->grabService(IRequest::class);
0 commit comments