Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Follow-up to #2752659: [META] Convert SimpleTest Tests to PHPUnit
Core is deprecating SimpleTest for Drupal 9 and converting all the tests #2735005: Convert all Simpletest web tests to BrowserTestBase (or UnitTestBase/KernelTestBase).
We should also do this.
Comment | File | Size | Author |
---|---|---|---|
#5 | interdiff-2-5.txt | 1.41 KB | jmuzz |
#2 | paragraphs-admin_test-2753885-2.patch | 19.02 KB | jmuzz |
Comments
Comment #2
jmuzz CreditAttribution: jmuzz commentedThis is about 75% of the way there, but even that much relies on the assertFieldByXPath() patch.
After applying both patches 1 of the 2 tests pass, and the other one makes it to the fieldUIAddExistingField() call and fails because the trait attempts to call setRawContent() which is not defined in BrowserTestBase.
Comment #3
jmuzz CreditAttribution: jmuzz commentedComment #4
jmuzz CreditAttribution: jmuzz commentedComment #5
jmuzz CreditAttribution: jmuzz commentedThis gets the tests passing for me, but I'm leaving postponed as it depends on 2 core patches:
#2784537: Add legacy assertFieldByXPath()/assertNoFieldByXPath() method for browser tests
#2794347: Convert web tests to browser tests for field_ui module
Comment #6
BerdirClosing as a duplicate, this happened elsewhere now.