Свойство | Тип | Описание | |
---|---|---|---|
$authenticationManager | Neos\Flow\Security\Authentication\AuthenticationManagerInterface | ||
$bootstrap | |||
$browser | Contains a virtual, preinitialized browser | ||
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | A functional instance of the Object Manager, for use in concrete test cases. | |
$persistenceManager | Neos\Flow\Persistence\PersistenceManagerInterface | ||
$policyService | |||
$privilegeManager | Neos\Flow\Security\Authorization\PrivilegeManagerInterface | ||
$router | Contains the router instance used in the browser's request engine | ||
$securityContext | |||
$testablePersistenceEnabled | boolean | If enabled, this test case will automatically run the compile() method on the Persistence Manager before running a test. | |
$testableSecurityEnabled | boolean | Note: this will implicitly enable testable HTTP as well. | |
$testingProvider | Neos\Flow\Security\Authentication\Provider\TestingProvider |
Метод | Описание | |
---|---|---|
setUp ( ) : void | Sets up test requirements depending on the enabled tests. | |
setUpBeforeClass ( ) : void | Initialize Flow | |
tearDown ( ) : void | Tears down test requirements depending on the enabled tests |
Метод | Описание | |
---|---|---|
authenticateAccount ( |
Prepares the environment for and conducts an account authentication | |
authenticateRoles ( array $roleNames ) : |
Creates a new account, assigns it the given roles and authenticates it. | |
cleanupPersistentResourcesDirectory ( ) : void | Cleans up the directory for storing persistent resources during testing | |
disableAuthorization ( ) : void | Disables authorization for the current test | |
emitFunctionalTestTearDown ( ) : void | Signals that the functional test case has been executed | |
registerRoute ( string $name, string $uriPattern, array $defaults, boolean $appendExceedingArguments = false, array $httpMethods = null ) : |
Adds a route that can be used in the functional tests | |
route ( |
||
setupHttp ( ) : void | Sets up a virtual browser and web environment for seamless HTTP and MVC related tests. | |
setupSecurity ( ) : void | Sets up security test requirements | |
setupSuperGlobals ( ) : void | Setup super global PHP variables mocking a standard http request. | |
tearDownSecurity ( ) : void | Resets security test requirements |
protected authenticateAccount ( |
||
$account | ||
Результат | void |
protected authenticateRoles ( array $roleNames ) : |
||
$roleNames | array | A list of roles the new account should have |
Результат | The created account |
protected cleanupPersistentResourcesDirectory ( ) : void | ||
Результат | void |
protected disableAuthorization ( ) : void | ||
Результат | void |
protected emitFunctionalTestTearDown ( ) : void | ||
Результат | void |
protected registerRoute ( string $name, string $uriPattern, array $defaults, boolean $appendExceedingArguments = false, array $httpMethods = null ) : |
||
$name | string | Name of the route |
$uriPattern | string | The uriPattern property of the route |
$defaults | array | An array of defaults declarations |
$appendExceedingArguments | boolean | If exceeding arguments may be appended |
$httpMethods | array | An array of accepted http methods |
Результат |
protected route ( |
||
$httpRequest | ||
Результат |
public static setUpBeforeClass ( ) : void | ||
Результат | void |
protected setupSecurity ( ) : void | ||
Результат | void |
protected static setupSuperGlobals ( ) : void | ||
Результат | void |
protected tearDownSecurity ( ) : void | ||
Результат | void |
protected AuthenticationManagerInterface,Neos\Flow\Security\Authentication $authenticationManager | ||
Результат | Neos\Flow\Security\Authentication\AuthenticationManagerInterface |
protected static Bootstrap,Neos\Flow\Core $bootstrap | ||
Результат |
protected Browser,Neos\Flow\Http\Client $browser | ||
Результат |
protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager | ||
Результат | Neos\Flow\ObjectManagement\ObjectManagerInterface |
protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager | ||
Результат | Neos\Flow\Persistence\PersistenceManagerInterface |
protected PolicyService,Neos\Flow\Security\Policy $policyService | ||
Результат |
protected PrivilegeManagerInterface,Neos\Flow\Security\Authorization $privilegeManager | ||
Результат | Neos\Flow\Security\Authorization\PrivilegeManagerInterface |
protected Router,Neos\Flow\Mvc\Routing $router | ||
Результат |
protected Context,Neos\Flow\Security $securityContext | ||
Результат |
protected static bool $testablePersistenceEnabled | ||
Результат | boolean |
protected bool $testableSecurityEnabled | ||
Результат | boolean |
protected TestingProvider,Neos\Flow\Security\Authentication\Provider $testingProvider | ||
Результат | Neos\Flow\Security\Authentication\Provider\TestingProvider |