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 {
$_SERVER['auth.login.stub'] = null;
Cookie::$jar = array();
Config::$items = array();
Auth::driver()->$user = null;
Auth::driver()->user = null;
Session::$instance = null;
Config::set('database.default', 'sqlite');
}
......@@ -30,7 +30,7 @@ class AuthTest extends PHPUnit_Framework_TestCase {
$_SERVER['auth.login.stub'] = null;
Cookie::$jar = array();
Config::$items = array();
Auth::driver()->$user = null;
Auth::driver()->user = null;
Session::$instance = null;
Config::set('database.default', 'mysql');
}
......@@ -42,7 +42,7 @@ class AuthTest extends PHPUnit_Framework_TestCase {
*/
public function testUserMethodReturnsCurrentUser()
{
Auth::$user = 'Taylor';
Auth::driver()->user = 'Taylor';
$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