summaryrefslogtreecommitdiff
path: root/tests/unit/Security/TUserManagerTest.php
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-06-20 16:49:53 +0000
committerctrlaltca@gmail.com <>2011-06-20 16:49:53 +0000
commita0d269954534e09c0b9c0f73c927b6eb764c21d9 (patch)
tree16dd9eba670fb6cca0e787ce5b715985bcca63b7 /tests/unit/Security/TUserManagerTest.php
parent444579affdb1d09813b2be89a59c4f10c8f4ba9b (diff)
some fixes on tests
Diffstat (limited to 'tests/unit/Security/TUserManagerTest.php')
-rw-r--r--tests/unit/Security/TUserManagerTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/Security/TUserManagerTest.php b/tests/unit/Security/TUserManagerTest.php
index 68f2b32b..2952927b 100644
--- a/tests/unit/Security/TUserManagerTest.php
+++ b/tests/unit/Security/TUserManagerTest.php
@@ -115,10 +115,10 @@ class TUserManagerTest extends PHPUnit_Framework_TestCase {
$userManager=new TUserManager ();
$userManager->init (self::$config);
$guest=$userManager->getUser(null);
- self::assertType('TUser', $guest);
+ self::assertInstanceOf('TUser', $guest);
self::assertTrue($guest->getIsGuest());
$user=$userManager->getUser('joe');
- self::assertType('TUser', $user);
+ self::assertInstanceOf('TUser', $user);
self::assertEquals('joe', $user->getName());
self::assertEquals(array ('Writer'), $user->getRoles());
self::assertFalse($user->getIsGuest());