mirror of
https://github.com/silverstripe/silverstripe-testsession
synced 2024-10-22 14:06:00 +02:00
Removed security token docs, no longer needed
This commit is contained in:
parent
42be37db53
commit
cd5ac2c752
14
README.md
14
README.md
@ -17,15 +17,9 @@ into a temporary database table for inspection by the CLI-based process.
|
|||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
In order to execute the commands, the environment must be in "dev mode",
|
Simply require the module in a SilverStripe webroot (3.0 or newer):
|
||||||
or you must be logged-in with administrative permissions.
|
|
||||||
|
|
||||||
Since the database name is stored as an encrypted cookie,
|
composer require silverstripe/behat-extension
|
||||||
you need to create a secure token for the encryption first:
|
|
||||||
|
|
||||||
sake dev/generatesecuretoken
|
|
||||||
|
|
||||||
The resulting configuration code needs to be placed in `mysite/_config.php`.
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
@ -41,7 +35,9 @@ Commands:
|
|||||||
* `dev/testsession/loadfixture?fixture=<path>`: Loads a fixture into an existing test state.
|
* `dev/testsession/loadfixture?fixture=<path>`: Loads a fixture into an existing test state.
|
||||||
* `dev/testsession/clear`: Empties the test state.
|
* `dev/testsession/clear`: Empties the test state.
|
||||||
|
|
||||||
Parameters for "dev/testsession/start":
|
While you can use the interface to set the test session state,
|
||||||
|
it can be useful to set them programmatically through query parameters
|
||||||
|
on "dev/testsession/start":
|
||||||
|
|
||||||
* `fixture`: Loads a YAML fixture in the format generally accepted by `SapphireTest`
|
* `fixture`: Loads a YAML fixture in the format generally accepted by `SapphireTest`
|
||||||
(see [fixture format docs](http://doc.silverstripe.org/framework/en/topics/testing/fixtures)).
|
(see [fixture format docs](http://doc.silverstripe.org/framework/en/topics/testing/fixtures)).
|
||||||
|
Loading…
Reference in New Issue
Block a user