aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-10-28 22:25:27 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-10-28 22:25:27 +0000
commit2444e1257f17c2f2559f7a1504a5b104b6176057 (patch)
tree6ca179016ac4451f1dda2cf3df3d6de97db03abd /tests
parent0fcbe3158d60813b8787b9e6663550af5d868d5c (diff)
downloadsemanticscuttle-2444e1257f17c2f2559f7a1504a5b104b6176057.tar.gz
semanticscuttle-2444e1257f17c2f2559f7a1504a5b104b6176057.tar.bz2
fix unfreed sql result and add deleteAll() for users
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@457 b3834d28-1941-0410-a4f8-b48e95affb8f
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)
+ );
+ }
+
}