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.
Problem/Motivation
drupalPostForm in functional tests is deprecated.
See: https://www.drupal.org/node/3168858
Proposed resolution
Using UiHelperTrait::drupalPostForm()
in functional tests is deprecated. Use a combination of ::drupalGet
and ::submitForm
instead.
Comment | File | Size | Author |
---|---|---|---|
#6 | 3174124-6.patch | 4.55 KB | paulocs |
#2 | 3174124-2.patch | 262.13 KB | paulocs |
Comments
Comment #2
paulocsComment #3
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedI prefer having webform provide its own ::drupalPostForm().
Comment #4
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedWe can add the ::drupalPostForm method to \Drupal\Tests\webform\Traits\WebformAssertLegacyTrait.
Comment #5
paulocsokay,
I'will do it.
Comment #6
paulocsNew patch.
Please review.
Comment #8
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented