title: Laravel login test failed in phpunit
body: <p>I am trying to do login test by phpunit in laravel. I have 5.5 so visit method is not supported. Here is what I am doing</p>
  
  <pre><code>public function testLoginPost(){
  Session::start();
  
  $response = $this-&gt;call('POST', 'login', [
      'email' =&gt; 'sokhter@yahoo.com',
      'password' =&gt; '123456',
      '_token' =&gt; csrf_token()
  ]);
  $this-&gt;assertEquals(200, $response-&gt;getStatusCode());
  $this-&gt;assertEquals('auth.login', $response-&gt;original-&gt;name());}
  </code></pre>
  
  <p>```</p>
  
  <pre><code>c:\wamp64\www\fundtheneedy\tests\Unit&gt;phpunit Fundtheneedy
  PHPUnit 6.5.8 by Sebastian Bergmann and contributors.
  
  .F                                                                  2 / 2 (100%)
  
  Time: 321 ms, Memory: 14.00MB
  
  There was 1 failure:
  
  1) Tests\Unit\Fundtheneedy::testLoginPost
  Failed asserting that 302 matches expected 200.
  
  C:\wamp64\www\fundtheneedy\tests\Unit\Fundtheneedy.php:30
  
  FAILURES!
  Tests: 2, Assertions: 2, Failures: 1.
  ```
  </code></pre>