csrf_protection в документации: https://symfony.com/doc/current/reference/configuration/framework.html#csrf -защита
Имею в codeception.yml:
params:
- .env.test.local
В .env.test.local:
APP_ENV=test
В config / packages / test / framework.yaml:
framework:
test: true
session:
storage_id: session.storage.mock_file
csrf_protection:
enabled: false
Запустите «Codecept run accept» и увидите ошибку:
The CSRF token is invalid. Please try to resubmit the form.
Почему?