PHP Class Krucas\LaravelUserEmailVerification\Test\VerificationBrokerTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: edvinaskrucas/laravel-user-email-verification

Public Methods

Method Description
tearDown ( )
testBrokerCreatesTokenAndRedirectsWithoutError ( )
testGetUserThrowsExceptionIfUserDoesntImplementRequiresEmailVerification ( )
testIfUserIsNotFoundErrorRedirectIsReturned ( )
testMailerIsCalledWithProperViewTokenAndCallback ( )
testRedirectIsReturnedByVerificationWhenUserCredentialsInvalid ( )
testRedirectReturnedByVerificationWhenRecordDoesntExistInTable ( )
testUserIsRetrievedByCredentials ( )
testVerificationRemovesRecordOnTokenTableAndCallsCallback ( )

Protected Methods

Method Description
getBroker ( $mocks )
getMocks ( )

Method Details

getBroker() protected method

protected getBroker ( $mocks )

getMocks() protected method

protected getMocks ( )

tearDown() public method

public tearDown ( )

testBrokerCreatesTokenAndRedirectsWithoutError() public method

testGetUserThrowsExceptionIfUserDoesntImplementRequiresEmailVerification() public method

testIfUserIsNotFoundErrorRedirectIsReturned() public method

testMailerIsCalledWithProperViewTokenAndCallback() public method

testRedirectIsReturnedByVerificationWhenUserCredentialsInvalid() public method

testRedirectReturnedByVerificationWhenRecordDoesntExistInTable() public method

testUserIsRetrievedByCredentials() public method

testVerificationRemovesRecordOnTokenTableAndCallsCallback() public method