SilverStripe\LDAP\Tests\Services\LDAPServiceTest
Synopsis
class LDAPServiceTest
extends SapphireTest
{
- // members
- protected boolean $usesDatabase = true;
- protected static string $fixture_file = 'LDAPServiceTest.yml';
- private LDAPService $service;
- // methods
- protected void setUp()
- public void testGroups()
- public void testUpdateMemberFromLDAP()
- public void testAssignGroupMember()
- public void testAssignRemovedGroupMember()
- public void testUpdateMemberResetAttributesFromLDAP()
- public void testUpdateMemberResetThumbnailFromLDAP()
- public void testUpdateMemberLeaveThumbnailIfSameFromLDAP()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
Methods
protected
public
- testAssignGroupMember() — LDAP should correctly assign a member to the groups, if there's a mapping between LDAPGroupMapping and Group and LDAP returns the mapping via 'memberof'
- testAssignRemovedGroupMember() — LDAP should correctly assign a member to the groups, if there's a mapping between LDAPGroupMapping and Group and LDAP returns the mapping via 'memberof'
- testGroups()
- testUpdateMemberFromLDAP()
- testUpdateMemberLeaveThumbnailIfSameFromLDAP() — If the LDAPService setting reset_missing_attributes is true, delete the thumbnail (special case) if it's not present in the response information.
- testUpdateMemberResetAttributesFromLDAP() — If the LDAPService setting reset_missing_attributes is true, reset fields if the attribute isn't present in the response information.
- testUpdateMemberResetThumbnailFromLDAP() — If the LDAPService setting reset_missing_attributes is true, delete the thumbnail (special case) if it's not present in the response information.