Method |
Description |
|
assertIs404 ( Client $client ) |
|
|
backupParametersFile ( string $kernelDir ) |
Copies the parameters.yml file to a backup version |
|
createClient ( array $options = [], array $server = [] ) : Client |
Creates a Client. |
|
emptyTestDatabase ( SpoonDatabase $database ) |
Fully empties the test database |
|
getKernelClass ( ) : string |
Attempts to guess the kernel location. |
|
importSQL ( SpoonDatabase $database, string $sql ) |
Executes sql in the database |
|
loadFixtures ( Client $client, array $fixtureClasses = [] ) |
|
|
login ( ) |
Logs in a user. We do this directly in the authentication class because
this is a lot faster than submitting forms and following redirects |
|
logout ( ) |
Log out a user |
|
putParametersFileBack ( string $kernelDir ) |
Puts the backed up parameters.yml file back |
|
requestWithGetParameters ( Client $client, string $url, array $data = [] ) : Crawler |
Do a request with the given GET parameters |
|
setGetParameters ( array $data = [] ) |
Set the GET parameters, as some of the old code relies on GET |
|
submitEditForm ( Client $client, Form $form, array $data = [] ) |
Edits the data of a form |
|
submitForm ( Client $client, Form $form, array $data = [] ) |
Submits the form and mimics the GET parameters, since they aren't added
by default in the functional tests |
|
unsetGetParameters ( array $data = [] ) |
Unset the GET parameters, as some of the old code relies on GET |
|