Commit 9bd87551 authored by Franz Liedke's avatar Franz Liedke

Fix wrong API usage in Auth unit test.

parent a7c21133
...@@ -17,7 +17,7 @@ class AuthTest extends PHPUnit_Framework_TestCase { ...@@ -17,7 +17,7 @@ class AuthTest extends PHPUnit_Framework_TestCase {
$_SERVER['auth.login.stub'] = null; $_SERVER['auth.login.stub'] = null;
Cookie::$jar = array(); Cookie::$jar = array();
Config::$items = array(); Config::$items = array();
Auth::driver()->$user = null; Auth::driver()->user = null;
Session::$instance = null; Session::$instance = null;
Config::set('database.default', 'sqlite'); Config::set('database.default', 'sqlite');
} }
...@@ -30,7 +30,7 @@ class AuthTest extends PHPUnit_Framework_TestCase { ...@@ -30,7 +30,7 @@ class AuthTest extends PHPUnit_Framework_TestCase {
$_SERVER['auth.login.stub'] = null; $_SERVER['auth.login.stub'] = null;
Cookie::$jar = array(); Cookie::$jar = array();
Config::$items = array(); Config::$items = array();
Auth::driver()->$user = null; Auth::driver()->user = null;
Session::$instance = null; Session::$instance = null;
Config::set('database.default', 'mysql'); Config::set('database.default', 'mysql');
} }
...@@ -42,7 +42,7 @@ class AuthTest extends PHPUnit_Framework_TestCase { ...@@ -42,7 +42,7 @@ class AuthTest extends PHPUnit_Framework_TestCase {
*/ */
public function testUserMethodReturnsCurrentUser() public function testUserMethodReturnsCurrentUser()
{ {
Auth::$user = 'Taylor'; Auth::driver()->user = 'Taylor';
$this->assertEquals('Taylor', Auth::user()); $this->assertEquals('Taylor', Auth::user());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment