PHP 트레잇 Neos\Flow\Tests\Behavior\Features\Bootstrap\SecurityOperationsTrait

Note that this trait requires that the following members are available: - $this->objectManager (Neos\Flow\ObjectManagement\ObjectManagerInterface) - $this->environment (Neos\Flow\Utility\Environment) Note: This trait expects the IsolatedBehatStepsTrait to be available! Note: Make sure to call $this->setupSecurity() in the constructor of your behat context for these steps to work in your tests!
파일 보기 프로젝트 열기: neos/flow-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$securityInitialized
$testingPolicyPathAndFilename

공개 메소드들

메소드 설명
cleanUpSecurity ( )
iAmAuthenticatedWithRole ( $roleIdentifier )
iAmNotAuthenticated ( )
iCanCallTheMethodOfClassWithArguments ( $not, $methodName, $className, $arguments = '' )
iHaveTheFollowingPolicies ( $string ) WARNING: If using this step definition, IT MUST RUN AS ABSOLUTELY FIRST STEP IN A SCENARIO!

보호된 메소드들

메소드 설명
authenticateAccount ( Account $account ) : void Prepares the environment for and conducts an account authentication
authenticateRoles ( array $roleNames ) : Neos\Flow\Security\Accountt Creates a new account, assigns it the given roles and authenticates it.
setupSecurity ( ) : void Sets up security test requirements

메소드 상세

authenticateAccount() 보호된 메소드

Prepares the environment for and conducts an account authentication
protected authenticateAccount ( Account $account ) : void
$account Neos\Flow\Security\Account
리턴 void

authenticateRoles() 보호된 메소드

The created account is returned for further modification, for example for attaching a Party object to it.
protected authenticateRoles ( array $roleNames ) : Neos\Flow\Security\Accountt
$roleNames array A list of roles the new account should have
리턴 Neos\Flow\Security\Accountt The created account

cleanUpSecurity() 공개 정적인 메소드

public static cleanUpSecurity ( )

iAmAuthenticatedWithRole() 공개 메소드

public iAmAuthenticatedWithRole ( $roleIdentifier )

iAmNotAuthenticated() 공개 메소드

public iAmNotAuthenticated ( )

iCanCallTheMethodOfClassWithArguments() 공개 메소드

public iCanCallTheMethodOfClassWithArguments ( $not, $methodName, $className, $arguments = '' )

iHaveTheFollowingPolicies() 공개 메소드

WARNING: If using this step definition, IT MUST RUN AS ABSOLUTELY FIRST STEP IN A SCENARIO!
public iHaveTheFollowingPolicies ( $string )

setupSecurity() 보호된 메소드

Security is based on action requests so we need a working route for the TestingProvider.
protected setupSecurity ( ) : void
리턴 void

프로퍼티 상세

$securityInitialized 보호되어 있는 프로퍼티

protected $securityInitialized

$testingPolicyPathAndFilename 보호되어 있는 정적으로 프로퍼티

protected static $testingPolicyPathAndFilename