title: Laravel 5.1 unit testing with session
body: <p>Given this test:</p>
  
  <pre><code>echo "\n";
  echo Session::getId();
  
  $this-&gt;call('GET', '/');
  
  echo "\n";
  echo Session::getId();
  </code></pre>
  
  <p>The output shows that the Session ID is not persisted after the request:</p>
  
  <pre><code>fb7e02798f043fac798a424547f0d01acd0dbdc0
  83133c07abdbba5bc32f74eaf14362a69406ca45
  </code></pre>
  
  <p>As far as I can tell they should be the same, <code>app/config/session</code> settings</p>
  
  <pre><code>'driver' =&gt; env('SESSION_DRIVER', 'file'),
  'lifetime' =&gt; 120,
  'expire_on_close' =&gt; false,
  'domain' =&gt; "test.com",
  </code></pre>
  
  <p>The same tests works in 4.2, not entirely sure if there is an additional requirement to use sessions in unit tests or I should be using the facade implementations. </p>
  
  <p>edit: 0 session issues browsing normally on the site</p>
  
  <p>phpunit.xml</p>
  
  <pre><code>&lt;env name="APP_ENV" value="local"/&gt;
  &lt;env name="CACHE_DRIVER" value="file"/&gt;
  &lt;env name="SESSION_DRIVER" value="file"/&gt;
  &lt;env name="QUEUE_DRIVER" value="sync"/&gt;
  </code></pre>