public function testIsGuest() { $user = new TUser(self::$mgr); $user->setName('John'); $user->setIsGuest(false); $user->setRoles('Administrator, Writer'); self::assertFalse($user->getIsGuest()); $user->setIsGuest(true); self::assertTrue($user->getIsGuest()); self::assertEquals(array(), $user->getRoles()); }