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.
Comment | File | Size | Author |
---|---|---|---|
#12 | 2887411-12.patch | 9.47 KB | Anonymous (not verified) |
Comments
Comment #2
naveenvalechaComment #3
larowlanCan we add a usage please so we have implicit coverage.
Thanks
Comment #4
naveenvalechaComment #7
dawehnerLet's also expand the documentation: We could copy it from
\Drupal\simpletest\WebTestBase::drupalPostForm
Comment #8
Anonymous (not verified) CreditAttribution: Anonymous commentedAfter #2863842: Convert web tests to browser tests for search module we can replace all SearchTestBase::submitGetForm() to BTB::drupalPostForm(). This will give an explicit usage cases.
Also BTB:drupalPostForm() sends requests in the way that is specified in the
action
attribute of the form (proof from BTB::submitForm). We could also reflect this in the documentation. "Drupal Post From" like verb "send", not like type "POST".Comment #9
Anonymous (not verified) CreditAttribution: Anonymous commented#7: Done.
#8: Done.
Case with
$form_html_id
:also thanks to the
form_html_id
detected nit defect during conversion WTB/BTB:Comment #10
Lendude@vaplas nice!
couple of things:
I think we need a @deprecated here and a CR to @see to, right?
Its nice to have some use in the wild, but I think we should still add some dedicated coverage to
\Drupal\FunctionalTests\BrowserTestBaseTest::testForm
for this.Comment #11
Anonymous (not verified) CreditAttribution: Anonymous commented@Lendude, thanks!
I did not do СR before, deciding that it's not worth it. But if you offer, there are no problems.
Added dedicated coverage by your hint. At first glance it may seem a bit complicated, but it's much better than my first version of this coverage, which I will not even tell :)
Comment #12
Anonymous (not verified) CreditAttribution: Anonymous commentedWho added
assertTextHelper
to my patch?)Comment #13
borisson_This looks very solid, I can't find anything to nitpick or change about this patch. Great work.
Comment #14
alexpottCommitted 396936c and pushed to 8.6.x. Thanks!
Can we get a followup to remove \Drupal\Tests\search\Functional\SearchTestBase - the abstraction to just enable search and create content types if not standard looks unnecessary. I think it could use the same CR.
Comment #16
Anonymous (not verified) CreditAttribution: Anonymous commented@borisson_, @alexpott, thank you!
#14: Done #2980107: Replace Functional\SearchTestBase on BrowserTestBase?
Comment #17
kim.pepperThe change record needs updating:
Should be:
Also the title:
should be
Comment #18
Anonymous (not verified) CreditAttribution: Anonymous commented#17: thanks, fixed.
Also added info about deprecated SearchTestBase. But this is relevant after #2980107: Replace Functional\SearchTestBase on BrowserTestBase? only.
Comment #20
quietone CreditAttribution: quietone at PreviousNext commentedPublish change record