PHP 클래스 Sulu\Bundle\SecurityBundle\Behat\SecurityContext

상속: extends Sulu\Bundle\TestBundle\Behat\BaseContext, implements Behat\Behat\Context\SnippetAcceptingContext
파일 보기 프로젝트 열기: sulu/sulu

공개 메소드들

메소드 설명
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 )

비공개 메소드들

메소드 설명
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.

메소드 상세

iAmEditingThePermissionsOfAUser() 공개 메소드

public iAmEditingThePermissionsOfAUser ( $username )

iAmLoggedInAsAnAdministrator() 공개 메소드

iAmLoggedInAsAnAdministratorWithDefaultLocale() 공개 메소드

iAmLoggedInAsAnAdministratorWithLocale() 공개 메소드

theFollowingRolesExist() 공개 메소드

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

theFollowingUsersExist() 공개 메소드

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

theNotEnabledUserExistsWithPassword() 공개 메소드

public theNotEnabledUserExistsWithPassword ( $username, $password )

theRoleShouldExist() 공개 메소드

public theRoleShouldExist ( $name )

theRoleShouldNotExist() 공개 메소드

public theRoleShouldNotExist ( $name )

theUserExistsWithPassword() 공개 메소드

public theUserExistsWithPassword ( $username, $password )

theUserExistsWithPasswordAndLocale() 공개 메소드

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