phpDocumentor GalleryCore
PHPUnit
[ class tree: GalleryCore ] [ index: GalleryCore ] [ all elements ]

Class: UserAndGroupTest

Source Location: /modules/core/test/phpunit/UserAndGroupTest.class

Class UserAndGroupTest

Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From GalleryTestCase

GalleryTestCase::$_cleanup

Inherited From GalleryTestCase

GalleryTestCase::GalleryTestCase()
GalleryTestCase::assert()
GalleryTestCase::assertEquals()
GalleryTestCase::assertErrorEquals()
Fail if the provided GalleryStatus object does not contain the given error code.
GalleryTestCase::assertEventFired()
Fail if the provided event name was not fired.
GalleryTestCase::assertEventNotFired()
Fail if the provided event name was fired
GalleryTestCase::DeepCompare()
GalleryTestCase::failWithStatus()
This is deprecated in Gallery 2.3 -- now tests should just return $ret and let the framework generate the right failure message.
GalleryTestCase::getEntityCounter()
Get the entity counter listener which contains the types and number of elements deleted.
GalleryTestCase::setUp()
GalleryTestCase::tearDown()
GalleryTestCase::_array_unshift_key_value()
Utility method to array_unshift a single key => value pair.
GalleryTestCase::_becomeGuestUser()
GalleryTestCase::_createDerivative()
GalleryTestCase::_createLinkedItem()
Create a random link item
GalleryTestCase::_createRandomAlbum()
Create a random album
GalleryTestCase::_createRandomDataItem()
Create a random data item
GalleryTestCase::_createRandomGroup()
Create a random group
GalleryTestCase::_createRandomUser()
Create a random user
GalleryTestCase::_createUser()
GalleryTestCase::_deleteAndVerifyEntity()
GalleryTestCase::_disableUserName()
Convenience method to mark a username as disabled.
GalleryTestCase::_getRootId()
GalleryTestCase::_getUnusedId()
Get an id that is not used for anything.
GalleryTestCase::_initEventListenersForTest()
Disable all but some core event listeners by default.
GalleryTestCase::_markEventListenersForCleanup()
Create a backup of the registered event listeners which will be restored in tearDown.
GalleryTestCase::_markFactoryForCleanup()
Create a backup of the factory data which will be restored in tearDown.
GalleryTestCase::_markFactoryModuleForCleanup()
GalleryTestCase::_markForCleanup()
GalleryTestCase::_markPluginParametersForCleanup()
Store plugin parameters to be restored in tearDown
GalleryTestCase::_markToolkitForCleanup()
GalleryTestCase::_registerEventListener()
Register a The NullEventListener for a test
GalleryTestCase::_registerFactoryImplementationForTest()
Register a factory implementation temporarily for this test.
GalleryTestCase::_registerTestEventListener()
Register and event name and associated listener (deprecated).
GalleryTestCase::_setMarkupType()
Set core parameter for markup type.
GalleryTestCase::_signUrl()
Adds an authToken to the given URL
GalleryTestCase::_unregisterFactoryImplementationForTest()
Unregister a specific factory implementation or all implementations of a spefific type temporarily for this test.
GalleryTestCase::_verifyEntity()
GalleryTestCase::_verifyFields()
GalleryTestCase::_verifyMissing()

[ Top ]
Method Summary
UserAndGroupTest   UserAndGroupTest()  
void   setUp()  
void   tearDown()  
void   testAddAndRemoveUserFromGroup()   Create user, create group, add user to group, remove user from group,
void   testAddDuplicateUserToGroup()  
void   testAssertHasItemPermission()  
void   testAssertSiteAdministrator()  
void   testCheckUserPassword()  
void   testCheckUserPasswordEntitiesLegacy()  
void   testCheckUserPasswordPhpassFallback()  
void   testCheckUserPasswordSimpleMd5Legacy()  
void   testCreateAndModifyGroup()   Create group, modify group, delete group
void   testCreateAndModifyUser()   Create user, modify user, delete user
void   testCreateDuplicateGroup()   Create duplicate group
void   testCreateDuplicateUser()   Create duplicate user
void   testCreateGroup()   Create group, delete group
void   testCreateUser()   Create user, delete user
void   testDeleteAdmin()   Verify item owners are remapped ok if we delete a site admin.
void   testDeleteAnonymousUser()  
void   testDeleteLastAdmin()   Verify we can't delete the last site admin.
void   testDeleteSelf()  
void   testDeleteSpecialGroups()  
void   testDeleteUser()   Create group, create user, add user to group, assign
void   testDeleteUserItems()   Create user1, add some items, some with delete permission,
void   testFetchGroupByName()   Create group, fetch it by name, delete group
void   testFetchGroupCount()   Count groups, Create group, count groups again, delete group
void   testFetchGroupNames()   Create group, fetch group names, make sure it's in there, delete group
void   testFetchUserByName()   Create user, fetch it by name, delete user
void   testFetchUserCount()   Count users, Create user, count users again, delete user
void   testFetchUserCountByGroupId()  
void   testFetchUserCountBySubstring()   Verify that we can fetch all users with a given substring in their username
void   testFetchUserCountBySubstringAndGroupId()   Verify that we can fetch all users from a group with a given substring in their username
void   testFetchUserNames()   Create user, fetch user names, make sure it's in there, delete user
void   testFetchUsersFromGroupBySubstringAndGroupId()   Verify that we can fetch all users from a group with a given substring in their username
void   testHasItemPermission()  

[ Top ]
Methods
Constructor UserAndGroupTest  [line 35]

  UserAndGroupTest UserAndGroupTest( $methodName  )

Parameters:
   $methodName: 


[ Top ]
setUp  [line 39]

  void setUp( )



Redefinition of:
GalleryTestCase::setUp()

[ Top ]
tearDown  [line 52]

  void tearDown( )



Redefinition of:
GalleryTestCase::tearDown()

[ Top ]
testAddAndRemoveUserFromGroup  [line 1200]

  void testAddAndRemoveUserFromGroup( )

Create user, create group, add user to group, remove user from group,

delete user, delete group



[ Top ]
testAddDuplicateUserToGroup  [line 1421]

  void testAddDuplicateUserToGroup( )



[ Top ]
testAssertHasItemPermission  [line 1353]

  void testAssertHasItemPermission( )



[ Top ]
testAssertSiteAdministrator  [line 1340]

  void testAssertSiteAdministrator( )



[ Top ]
testCheckUserPassword  [line 1468]

  void testCheckUserPassword( )



[ Top ]
testCheckUserPasswordEntitiesLegacy  [line 1495]

  void testCheckUserPasswordEntitiesLegacy( )



[ Top ]
testCheckUserPasswordPhpassFallback  [line 1517]

  void testCheckUserPasswordPhpassFallback( )



[ Top ]
testCheckUserPasswordSimpleMd5Legacy  [line 1483]

  void testCheckUserPasswordSimpleMd5Legacy( )



[ Top ]
testCreateAndModifyGroup  [line 1148]

  void testCreateAndModifyGroup( )

Create group, modify group, delete group



[ Top ]
testCreateAndModifyUser  [line 400]

  void testCreateAndModifyUser( )

Create user, modify user, delete user



[ Top ]
testCreateDuplicateGroup  [line 1078]

  void testCreateDuplicateGroup( )

Create duplicate group



[ Top ]
testCreateDuplicateUser  [line 1113]

  void testCreateDuplicateUser( )

Create duplicate user



[ Top ]
testCreateGroup  [line 1052]

  void testCreateGroup( )

Create group, delete group



[ Top ]
testCreateUser  [line 68]

  void testCreateUser( )

Create user, delete user



[ Top ]
testDeleteAdmin  [line 293]

  void testDeleteAdmin( )

Verify item owners are remapped ok if we delete a site admin.



[ Top ]
testDeleteAnonymousUser  [line 250]

  void testDeleteAnonymousUser( )



[ Top ]
testDeleteLastAdmin  [line 261]

  void testDeleteLastAdmin( )

Verify we can't delete the last site admin.



[ Top ]
testDeleteSelf  [line 235]

  void testDeleteSelf( )



[ Top ]
testDeleteSpecialGroups  [line 371]

  void testDeleteSpecialGroups( )



[ Top ]
testDeleteUser  [line 97]

  void testDeleteUser( )

Create group, create user, add user to group, assign

permission to user, add item to user, delete user. check if permission and group maps are gone, check if item still exists with correct owner, delete group



[ Top ]
testDeleteUserItems  [line 480]

  void testDeleteUserItems( )

Create user1, add some items, some with delete permission,

create another user2, add an item of user2 in user1's item tree delete user1, check if the right items were deleted, clean up



[ Top ]
testFetchGroupByName  [line 1316]

  void testFetchGroupByName( )

Create group, fetch it by name, delete group



[ Top ]
testFetchGroupCount  [line 1284]

  void testFetchGroupCount( )

Count groups, Create group, count groups again, delete group



[ Top ]
testFetchGroupNames  [line 1257]

  void testFetchGroupNames( )

Create group, fetch group names, make sure it's in there, delete group



[ Top ]
testFetchUserByName  [line 1025]

  void testFetchUserByName( )

Create user, fetch it by name, delete user



[ Top ]
testFetchUserCount  [line 753]

  void testFetchUserCount( )

Count users, Create user, count users again, delete user



[ Top ]
testFetchUserCountByGroupId  [line 822]

  void testFetchUserCountByGroupId( )



[ Top ]
testFetchUserCountBySubstring  [line 785]

  void testFetchUserCountBySubstring( )

Verify that we can fetch all users with a given substring in their username



[ Top ]
testFetchUserCountBySubstringAndGroupId  [line 873]

  void testFetchUserCountBySubstringAndGroupId( )

Verify that we can fetch all users from a group with a given substring in their username



[ Top ]
testFetchUserNames  [line 451]

  void testFetchUserNames( )

Create user, fetch user names, make sure it's in there, delete user



[ Top ]
testFetchUsersFromGroupBySubstringAndGroupId  [line 947]

  void testFetchUsersFromGroupBySubstringAndGroupId( )

Verify that we can fetch all users from a group with a given substring in their username



[ Top ]
testHasItemPermission  [line 1360]

  void testHasItemPermission( )



[ Top ]

Documentation generated on Fri, 08 Oct 2010 06:03:14 -0700 by phpDocumentor 1.3.0RC6