diff options
author | Christian Weiske <cweiske@cweiske.de> | 2012-01-21 13:44:58 +0100 |
---|---|---|
committer | Christian Weiske <cweiske@cweiske.de> | 2012-01-21 13:44:58 +0100 |
commit | 95a8ca8a99e48ac3255587d3a06109b24e24b9b4 (patch) | |
tree | 45faba2331987bb12417e68fc5a96465ee9f68e6 /tests/UserTest.php | |
parent | 1cf83b673247d6a84c0afad1f70e774f85125e8d (diff) | |
parent | 795de13414f5722c0ab3614eb7b1851c4c2df2c2 (diff) | |
download | semanticscuttle-95a8ca8a99e48ac3255587d3a06109b24e24b9b4.tar.gz semanticscuttle-95a8ca8a99e48ac3255587d3a06109b24e24b9b4.tar.bz2 |
Merge branch '0.98'
Diffstat (limited to 'tests/UserTest.php')
-rw-r--r-- | tests/UserTest.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/UserTest.php b/tests/UserTest.php index 6cd6786..85d2204 100644 --- a/tests/UserTest.php +++ b/tests/UserTest.php @@ -246,6 +246,22 @@ class UserTest extends TestBase ); } + public function testGetIdFromUserParamId() + { + $uid = $this->addUser(); + $newId = $this->us->getIdFromUser($uid); + $this->assertInternalType('integer', $newId); + $this->assertEquals($uid, $newId); + } + + public function testGetIdFromUserParamUsername() + { + $uid = $this->addUser('someusername'); + $newId = $this->us->getIdFromUser('someusername'); + $this->assertInternalType('integer', $newId); + $this->assertEquals($uid, $newId); + } + /** |