title: Functional testing in Symfony2 gives me error: Failed asserting that false is true
body: <p>I have action where I do this:</p>
  
  <pre><code>return $this-&gt;redirect($this-&gt;generateUrl('url_key'));
  </code></pre>
  
  <p>In my test I do this:</p>
  
  <pre><code>$this-&gt;assertTrue($client-&gt;getResponse()-&gt;isRedirect());
  </code></pre>
  
  <p>But I get error:</p>
  
  <blockquote>
    <p>Failed asserting that false is true</p>
  </blockquote>
  
  <p>Where is my problem? Why I am getting error?</p>
  
  <p>My full test:</p>
  
  <pre><code>public function testDeleteAction()
  {
      $client = static::createClient();
      $client-&gt;request('GET', '/translation/delete/messages/test.key');
      $client-&gt;followRedirects();
      $this-&gt;assertTrue($client-&gt;getResponse()-&gt;isRedirect());
  }
  </code></pre>