From 2444e1257f17c2f2559f7a1504a5b104b6176057 Mon Sep 17 00:00:00 2001 From: cweiske Date: Wed, 28 Oct 2009 22:25:27 +0000 Subject: 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 --- tests/UserTest.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tests') 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) + ); + } + } -- cgit v1.2.3