PHP Class Backend\Modules\Authentication\Tests\Action\IndexTest

Inheritance: extends common\WebTestCase
Datei anzeigen Open project: forkcms/forkcms

Public Methods

Method Description
testAuthenticationIndexWorks ( )
testAuthenticationWithCorrectCredentials ( )
testAuthenticationWithWrongCredentials ( )
testPagesUserWithCorrectCredentials ( ) Login as a pages user.
testPrivateContainsRobotsTag ( )
testPrivateRedirectsToAuthentication ( )
testUsersUserWithCorrectCredentials ( ) Login as a users user.

Protected Methods

Method Description
tearDown ( ) The authentication class persist the previous user.

Method Details

tearDown() protected method

In practice this situation will almost never occur: Login with one user, log out and subsequently log in with another user without a page reload to reinitialize the application. If the clients could be insulated from eachother, this would not be an issue.
protected tearDown ( )

testAuthenticationIndexWorks() public method

testAuthenticationWithCorrectCredentials() public method

testAuthenticationWithWrongCredentials() public method

testPagesUserWithCorrectCredentials() public method

This user has the rights to access only the pages module.

testPrivateContainsRobotsTag() public method

testPrivateRedirectsToAuthentication() public method

testUsersUserWithCorrectCredentials() public method

This user only has the rights to access the users edit action. It should enable the user to edit his own user-account.