Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
Test website send errors catched with specific HTTP headers to cURL user-agent ("X-Drupal-Assertion-NUMBER").
Unfortunetly, some testing framework like WebDriver doesn't support HTTP headers...
A simple alternative would be to write errors into a file of the testing public file directory.
Here is a patch for example.
Comment | File | Size | Author |
---|---|---|---|
#3 | 2368345-test_error_file-2.patch | 1.56 KB | chaby |
#1 | 2368345-test_error_file-1.patch | 1.56 KB | chaby |
Comments
Comment #1
chaby CreditAttribution: chaby commentedComment #3
chaby CreditAttribution: chaby commentedIndeed, patch could not be applied.
If I run git apply --ignore-space-change 2368345-test_error_file-1.patch, it works...but
is not well indented because original source is not well indented.
Running git apply -v 2368345-test_error_file-1.patch output :
As we could see, this block code is already not indented well...
Here is a reroll of this patch which doesn't make sense because now indentation is really broken. So please apply #1 manually instead.