PHP Class Sulu\Bundle\SecurityBundle\Behat\SecurityContext

Inheritance: extends Sulu\Bundle\TestBundle\Behat\BaseContext, implements Behat\Behat\Context\SnippetAcceptingContext
Afficher le fichier Open project: sulu/sulu

Méthodes publiques

Méthode Description
iAmEditingThePermissionsOfAUser ( $username )
iAmLoggedInAsAnAdministrator ( )
iAmLoggedInAsAnAdministratorWithDefaultLocale ( )
iAmLoggedInAsAnAdministratorWithLocale ( string $locale )
theFollowingRolesExist ( Behat\Gherkin\Node\TableNode $roles )
theFollowingUsersExist ( Behat\Gherkin\Node\TableNode $users )
theNotEnabledUserExistsWithPassword ( $username, $password )
theRoleShouldExist ( $name )
theRoleShouldNotExist ( $name )
theUserExistsWithPassword ( $username, $password )
theUserExistsWithPasswordAndLocale ( $username, $password, $locale )

Private Methods

Méthode Description
createUser ( string $username, string $password, string $locale, boolean $checkIfUserExists ) Creates user with given credentials.
getOrCreateRole ( $name, $system )
logInAsAdministrator ( string $locale = null ) Login as administrator with given locale.

Method Details

iAmEditingThePermissionsOfAUser() public méthode

public iAmEditingThePermissionsOfAUser ( $username )

iAmLoggedInAsAnAdministrator() public méthode

iAmLoggedInAsAnAdministratorWithDefaultLocale() public méthode

iAmLoggedInAsAnAdministratorWithLocale() public méthode

theFollowingRolesExist() public méthode

public theFollowingRolesExist ( Behat\Gherkin\Node\TableNode $roles )
$roles Behat\Gherkin\Node\TableNode

theFollowingUsersExist() public méthode

public theFollowingUsersExist ( Behat\Gherkin\Node\TableNode $users )
$users Behat\Gherkin\Node\TableNode

theNotEnabledUserExistsWithPassword() public méthode

public theNotEnabledUserExistsWithPassword ( $username, $password )

theRoleShouldExist() public méthode

public theRoleShouldExist ( $name )

theRoleShouldNotExist() public méthode

public theRoleShouldNotExist ( $name )

theUserExistsWithPassword() public méthode

public theUserExistsWithPassword ( $username, $password )

theUserExistsWithPasswordAndLocale() public méthode

public theUserExistsWithPasswordAndLocale ( $username, $password, $locale )