title: Procedure for login authentication test case in phpunit laravel
body: <p>What is the procedure for login authentication phpunit test cases in laravel 5 ?</p>
  
  <pre><code>$credentials=[
    'email'=&gt;'admin@admin.com',
    'password'=&gt;'admin'
  ];
  $response=$this-&gt;call('POST','login',$credentials);
  $this-&gt;assertTrue($response-&gt;isOk());
  </code></pre>