SilverStripe\MFA\Tests\Service\RegisteredMethodManagerTest
Synopsis
class RegisteredMethodManagerTest
extends SapphireTest
{
- // members
- protected static string $fixture_file = 'RegisteredMethodManagerTest.yml';
- protected static array $required_extensions = ;
- // methods
- public void testGetFromMember()
- public void testGetFromMemberReturnsNullWhenNotFound()
- public void testRegisterForMemberWritesToExistingRegisteredMethod()
- public void testRegisterForMemberCreatesNewMethod()
- public void testRegisterForMemberAssignsDefaultRegisteredMethod()
- public void testRegisterForMemberSendsNotification()
- public void testRegisterBackupMethodDoesNotSendEmail()
- public void testRegisterForMemberDoesNothingWithNoData()
- public void testDeleteFromMember()
- public void testDeleteFromMemberSendsNotification()
- public void testDeletingLastMethodRemovesBackupCodes()
- public void testCanRemoveTheOnlyMethodWhenMFAIsOptional()
- public void testCannotRemoveTheOnlyMethodWhenMFAIsRequired()
- public void testCanRemoveOneOfTwoMethodsWhenMFAIsRequired()
- private void registerServiceForMFAToBeRequired()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
protected
- $fixture_file
- $required_extensions
Methods
private
public
- testCanRemoveOneOfTwoMethodsWhenMFAIsRequired()
- testCanRemoveTheOnlyMethodWhenMFAIsOptional()
- testCannotRemoveTheOnlyMethodWhenMFAIsRequired()
- testDeleteFromMember()
- testDeleteFromMemberSendsNotification()
- testDeletingLastMethodRemovesBackupCodes()
- testGetFromMember()
- testGetFromMemberReturnsNullWhenNotFound()
- testRegisterBackupMethodDoesNotSendEmail()
- testRegisterForMemberAssignsDefaultRegisteredMethod()
- testRegisterForMemberCreatesNewMethod()
- testRegisterForMemberDoesNothingWithNoData()
- testRegisterForMemberSendsNotification()
- testRegisterForMemberWritesToExistingRegisteredMethod()