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.
See #2735005: Convert all Simpletest web tests to BrowserTestBase (or UnitTestBase/KernelTestBase)
This issue is postponed, blocked by #2911915: Add getHttpClient() to BrowserTestBase
Scope:
- ContextualDynamicContextTest
Everything else is already done!
Comment | File | Size | Author |
---|---|---|---|
#20 | interdiff-2865407-18-20.txt | 1.97 KB | ApacheEx |
#20 | 2865407-20.patch | 4.85 KB | ApacheEx |
Comments
Comment #2
GoZ CreditAttribution: GoZ at Barbe-Rousse, Centarro commentedI only add initial convert, we need #2795041: BrowserTestBase: Add drupalPostWithFormat to continue
Comment #3
dawehnerTo be honest I would prefer to use the HTTP client directly here, its clear what goes on then.
Comment #4
michielnugter CreditAttribution: michielnugter as a volunteer and at Synetic commentedSetting it back to needs work.
The test can be fixed with one of these options:
- calling drupalPostForm with the proper requirements
- Converting to JavascriptTestBase if it is actually testing Javascript behavior
- Use the HTTP client directly.
Comment #5
michielnugter CreditAttribution: michielnugter as a volunteer and at Synetic commentedComment #7
nlisgo CreditAttribution: nlisgo commentedI'm going to work on this one to try and address the failing tests.
Comment #8
michaellenahan CreditAttribution: michaellenahan at erdfisch commentedComment #9
nlisgo CreditAttribution: nlisgo commentedFollowing the direction in #3 and #4, I have used HTTP client.
Comment #10
Mile23Check out
HistoryTest::getHttpClient()
.There are a few other examples of doing this kind of thing, which is why I filed #2911915: Add getHttpClient() to BrowserTestBase to address converting tests that need http requests.
Comment #11
nlisgo CreditAttribution: nlisgo commentedI introduced some whitespace into my last patch. Resupplying.Comment #12
nlisgo CreditAttribution: nlisgo commentedApologises. Ignore patches in #11. Wrong issue.
Comment #13
dawehnerLet's postpone on the issue linked by @mile23 #2911915: Add getHttpClient() to BrowserTestBase
Comment #15
nlisgo CreditAttribution: nlisgo commentedWe need to postpone on #2911915: Add getHttpClient() to BrowserTestBase
Comment #17
nlisgo CreditAttribution: nlisgo commentedThis is now unblocked since #2911915: Add getHttpClient() to BrowserTestBase was fixed.
Comment #18
ApacheEx CreditAttribution: ApacheEx as a volunteer and at Drupal Ukraine Community commentedHere it is.
Comment #20
ApacheEx CreditAttribution: ApacheEx as a volunteer and at Internetdevels, Drupal Ukraine Community commentedOnce more, let's check if it's the reason.
Comment #21
LendudeNice and clean conversion, thank you.
it was worth waiting for these additions, looks really clean like this.
This was the only remaining webtest test in the contextual module, so the scope is correct being just one test. Updated the IS to reflect this.
Comment #23
alexpottCommitted and pushed 72d0bff47d to 8.7.x and abec12fbab to 8.6.x. Thanks!