diff options
Diffstat (limited to 'tests/units/Auth/DatabaseAuthTest.php')
-rw-r--r-- | tests/units/Auth/DatabaseAuthTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/units/Auth/DatabaseAuthTest.php b/tests/units/Auth/DatabaseAuthTest.php index 97c75bd2..50ae3c7e 100644 --- a/tests/units/Auth/DatabaseAuthTest.php +++ b/tests/units/Auth/DatabaseAuthTest.php @@ -48,15 +48,15 @@ class DatabaseAuthTest extends Base $this->assertEquals(2, $userModel->create(array('username' => 'foobar'))); - $this->container['sessionStorage']->user = array('id' => 2); + $_SESSION['user'] = array('id' => 2); $this->assertTrue($provider->isValidSession()); - $this->container['sessionStorage']->user = array('id' => 3); + $_SESSION['user'] = array('id' => 3); $this->assertFalse($provider->isValidSession()); $this->assertTrue($userModel->disable(2)); - $this->container['sessionStorage']->user = array('id' => 2); + $_SESSION['user'] = array('id' => 2); $this->assertFalse($provider->isValidSession()); } } |