Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Problem/Motivation
As title.
Proposed resolution
For example:
- $this->assertTrue(stristr($top_form_elements[0]->getText(), 'Title field is required.') !== FALSE);
+ $this->assertStringContainsString('Title field is required.', $top_form_elements[0]->getText());
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#2 | 3155761-2.patch | 968 bytes | Hardik_Patel_12 |
Comments
Comment #2
Hardik_Patel_12 CreditAttribution: Hardik_Patel_12 at QED42 for Drupal India Association commentedKindly review a patch.
Comment #3
longwaveOnly one instance of stristr() in assertions and this one doesn't look to need to be case insensitive, so this is good to go.
Comment #5
catchCommitted/pushed to 9.1.x, thanks!