FSWebWorks\SilverStripe\UserInvitations\Tests\UserInvitationTest
Synopsis
class UserInvitationTest
extends SapphireTest
{
- // members
- public static string $fixture_file = 'UserInvitationTest.yml';
- // methods
- public void setUp()
- public void testSendInvitation()
- public void testIsExpired()
- public void testGetCMSFields()
- public void testInvitationAlreadySent()
- public void testMemberAlreadyExists()
- public void testOnBeforeWrite()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
public
- $fixture_file
Methods
public
- setUp()
- testGetCMSFields() — Tests that the TempHash field has been removed
- testInvitationAlreadySent() — Tests that invitations can't be re-sent.
- testIsExpired() — Tests for expired invitations
- testMemberAlreadyExists() — Tests that duplicate members can't be created
- testOnBeforeWrite() — Tests that a random hash and the logged in users id was added
- testSendInvitation() — Tests that an invitation email was sent.