Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-header.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-header.php on line 8

UserTest Class Reference

Inheritance diagram for UserTest:
ZurmoBaseTest BaseTest

Public Member Functions

 setUp ()
 testCannotSetIsSystemUserDirectlyOnModel ()
 testEmailUniquenessValidation ()
 testSetTitleValuesAndRetrieveTitleValuesFromUser ()
 testSaveCurrentUser ()
 testCreateAndGetUserById ()
 testCreateUserWithRelatedUser ()
 testCreateAndGetUserByIdThatDoesntExist ()
 testGetByUsername ()
 testGetLabel ()
 testGetByUsernameForNonExistentUsername ()
 testSearchByPartialName ()
 testSearchByPartialNameWithFirstNamePlusPartialLastName ()
 testCreateWithTitleThenClearTitleDirectly ()
 testCreateWithTitleThenClearTitleWithSetAttributesWithEmptyId ()
 testCreateWithTitleThenClearTitleWithSetAttributesWithNullId ()
 testCreateWithTitleThenClearTitleWithSetAttributesWithRealId ()
 testSaveUserWithNoManager ()
 testSaveExistingUserWithFakePost ()
 testSaveExistingUserWithUsersIdAsManagerId ()
 testUserMixingInPerson ()
 testCreateNewUserFromPostNoBadValues ()
 testDeleteUserCascadesToDeleteEverythingItShould ()
 testCanRemoveRoleFromUser ()
 testPasswordUserNamePolicyChangesValidationAndLogin ()
 testUserNamePolicyValidatesCorrectlyOnDifferentScenarios ()
 testValidatingUserAfterGettingAttributeValuesFromRelatedUsers ()
 testValidatingSuperAdministratorAfterGettingAttributeValuesFromRelatedUsers ()
 testSavingExistingUserDoesntCreateRelatedBlankUsers ()
 testMixedInPersonInUser ()
 testGetModelClassNames ()
 testLogAuditEventsListForCreatedAndModifedCreatingFirstUser ()
 testAvatarForUser ()
 testDeleteLastUserInSuperAdministratorsGroup ()
 testIsActiveOnUserSave ()
 testUserLocaleSettings ()
 testLastLoginDateTimeAttribute ()
 testTrimUsername ()
 testHideFromSelectingOnUserSave ()
 testHideFromLeaderboardOnUserSave ()
 testIsRootUserOnUserSave ()
 testIsSystemUserAndActiveUserCountOnUserSave ()
 testGetUsersByEmailAddress ()
 testGetUsersByPartialFullName ()
 testNonSystemUsersStateMetadataAdapter ()
 testIsSuperAdministrator ()
 testInactiveUsers ()
 testMakeActiveUsersQuerySearchAttributeData ()
 testActiveUsers ()
 testLogAuditEventsForIsActive ()
 testSetMetadata ()

Static Public Member Functions

static setUpBeforeClass ()

Detailed Description

Definition at line 37 of file UserTest.php.


Member Function Documentation

testCannotSetIsSystemUserDirectlyOnModel (  ) 

You can only use setIsSystemUser to set the isSystemUser attribute NotSupportedException

Definition at line 55 of file UserTest.php.

testCreateUserWithRelatedUser (  ) 

testCreateAndGetUserById

Definition at line 167 of file UserTest.php.

testCreateAndGetUserByIdThatDoesntExist (  ) 

testCreateAndGetUserById NotFoundException

Definition at line 201 of file UserTest.php.

testGetByUsername (  ) 

testCreateAndGetUserById

Definition at line 209 of file UserTest.php.

testGetLabel (  ) 

testGetByUsername

Definition at line 218 of file UserTest.php.

testGetByUsernameForNonExistentUsername (  ) 

testGetByUsername NotFoundException

Definition at line 229 of file UserTest.php.

testSearchByPartialName (  ) 

testCreateAndGetUserById

Definition at line 237 of file UserTest.php.

testSearchByPartialNameWithFirstNamePlusPartialLastName (  ) 

testSearchByPartialName

Definition at line 303 of file UserTest.php.

testCreateWithTitleThenClearTitleDirectly (  ) 

testCreateAndGetUserById

Definition at line 348 of file UserTest.php.

testCreateWithTitleThenClearTitleWithSetAttributesWithEmptyId (  ) 

testCreateWithTitleThenClearTitleDirectly

Definition at line 370 of file UserTest.php.

testCreateWithTitleThenClearTitleWithSetAttributesWithNullId (  ) 

testCreateWithTitleThenClearTitleWithSetAttributesWithEmptyId

Definition at line 393 of file UserTest.php.

testCreateWithTitleThenClearTitleWithSetAttributesWithRealId (  ) 

testCreateWithTitleThenClearTitleWithSetAttributesWithNullId

Definition at line 416 of file UserTest.php.

testSaveExistingUserWithFakePost (  ) 

testCreateWithTitleThenClearTitleWithSetAttributesWithRealId testSaveUserWithNoManager

Definition at line 456 of file UserTest.php.

testSaveExistingUserWithUsersIdAsManagerId (  ) 

testSaveExistingUserWithFakePost

Definition at line 498 of file UserTest.php.

testDeleteUserCascadesToDeleteEverythingItShould (  ) 

testCreateAndGetUserById

Definition at line 614 of file UserTest.php.

testCanRemoveRoleFromUser (  ) 

testCreateAndGetUserById

Definition at line 684 of file UserTest.php.

testPasswordUserNamePolicyChangesValidationAndLogin (  ) 

testCreateAndGetUserById

Definition at line 737 of file UserTest.php.

testUserNamePolicyValidatesCorrectlyOnDifferentScenarios (  ) 

testPasswordUserNamePolicyChangesValidationAndLogin

Definition at line 880 of file UserTest.php.

testSavingExistingUserDoesntCreateRelatedBlankUsers (  ) 

testCreateUserWithRelatedUser

Definition at line 949 of file UserTest.php.

testDeleteLastUserInSuperAdministratorsGroup (  ) 

NotSupportedException

Definition at line 1121 of file UserTest.php.

testIsActiveOnUserSave (  ) 

test for checking isActive attribute

Definition at line 1137 of file UserTest.php.

testHideFromSelectingOnUserSave (  ) 

test for checking hideFromSelecting attribute

Definition at line 1230 of file UserTest.php.

testHideFromLeaderboardOnUserSave (  ) 

test for checking hideFromLeaderboard attribute

Definition at line 1266 of file UserTest.php.

testIsRootUserOnUserSave (  ) 

test for checking hideFromSelecting attribute

Definition at line 1309 of file UserTest.php.

testIsSystemUserAndActiveUserCountOnUserSave (  ) 

test for checking hideFromSelecting attribute

Definition at line 1363 of file UserTest.php.

testGetUsersByEmailAddress (  ) 

test getUsersByEmailAddress

Definition at line 1408 of file UserTest.php.

testGetUsersByPartialFullName (  ) 

test getUsersByPartialFullName

Definition at line 1425 of file UserTest.php.

testNonSystemUsersStateMetadataAdapter (  ) 

Test structure and clauses for NonSystemUsersStateMetadataAdapter

Definition at line 1445 of file UserTest.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sun Mar 24 07:11:02 2019

Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-footer.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-footer.php on line 8