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

Inheritance: extends common\WebTestCase
Afficher le fichier Open project: forkcms/forkcms

Méthodes publiques

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

Méthodes protégées

Méthode Description
tearDown ( ) The authentication class persist the previous user.

Method Details

tearDown() protected méthode

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 méthode

testAuthenticationWithCorrectCredentials() public méthode

testAuthenticationWithWrongCredentials() public méthode

testPagesUserWithCorrectCredentials() public méthode

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

testPrivateContainsRobotsTag() public méthode

testPrivateRedirectsToAuthentication() public méthode

testUsersUserWithCorrectCredentials() public méthode

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