PHP Class Sulu\Bundle\SecurityBundle\Behat\SecurityContext

Inheritance: extends Sulu\Bundle\TestBundle\Behat\BaseContext, implements Behat\Behat\Context\SnippetAcceptingContext
Datei anzeigen Open project: sulu/sulu

Public Methods

Method 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

Method 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 method

public iAmEditingThePermissionsOfAUser ( $username )

iAmLoggedInAsAnAdministrator() public method

iAmLoggedInAsAnAdministratorWithDefaultLocale() public method

iAmLoggedInAsAnAdministratorWithLocale() public method

theFollowingRolesExist() public method

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

theFollowingUsersExist() public method

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

theNotEnabledUserExistsWithPassword() public method

public theNotEnabledUserExistsWithPassword ( $username, $password )

theRoleShouldExist() public method

public theRoleShouldExist ( $name )

theRoleShouldNotExist() public method

public theRoleShouldNotExist ( $name )

theUserExistsWithPassword() public method

public theUserExistsWithPassword ( $username, $password )

theUserExistsWithPasswordAndLocale() public method

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