diff --git a/tests/Aauth/Libraries/Aauth/LoginTest.php b/tests/Aauth/Libraries/Aauth/LoginTest.php index b10f309..1f2104b 100644 --- a/tests/Aauth/Libraries/Aauth/LoginTest.php +++ b/tests/Aauth/Libraries/Aauth/LoginTest.php @@ -61,11 +61,21 @@ class LoginTest extends CIDatabaseTestCase //-------------------------------------------------------------------- + public function testLoginEmailTrue() + { + $session = $this->getInstance(); + $this->library = new Aauth(NULL, $session); + $this->assertTrue($this->library->login('admin@example.com', 'password123456')); + print_r($_SESSION); + } + public function testIsLoggedIn() { $session = $this->getInstance(); $this->library = new Aauth(NULL, $session); - $this->assertTrue($this->library->login('admin@example.com', 'password123456')); + $session->set('user', [ + 'loggedIn' => true, + ]); $this->assertTrue($this->library->isLoggedIn()); } }