diff options
author | ctrlaltca@gmail.com <> | 2011-06-20 16:49:53 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2011-06-20 16:49:53 +0000 |
commit | a0d269954534e09c0b9c0f73c927b6eb764c21d9 (patch) | |
tree | 16dd9eba670fb6cca0e787ce5b715985bcca63b7 /tests/unit/Security | |
parent | 444579affdb1d09813b2be89a59c4f10c8f4ba9b (diff) |
some fixes on tests
Diffstat (limited to 'tests/unit/Security')
-rw-r--r-- | tests/unit/Security/TUserManagerTest.php | 4 |
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()); |