summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/UserTest.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/UserTest.php b/tests/UserTest.php
index 5c905a0..513011b 100644
--- a/tests/UserTest.php
+++ b/tests/UserTest.php
@@ -103,6 +103,21 @@ class UserTest extends TestBase
$this->assertEquals($uid2, $user['uId']);
}
+
+
+ /**
+ * Test login() function with invalid creditentials
+ *
+ * @return void
+ */
+ public function testLoginInvalid()
+ {
+ $this->us->deleteAll();
+ $this->assertFalse(
+ $this->us->login('doesnot', 'exist', false)
+ );
+ }
+
}