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!
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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