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
As title.
Proposed resolution
For example:
- $this->assertTrue(array_key_exists("data-entity-uuid", $htmlRestrictions['allowed']['a']));
+ $this->assertArrayHasKey("data-entity-uuid", $htmlRestrictions['allowed']['a']);
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#2 | linkit-replace_array_key_exists_with_assertArrayHasKey-3135857-2.patch | 1.46 KB | mero.S |
Comments
Comment #2
mero.S CreditAttribution: mero.S as a volunteer and at AnyforSoft for AnyforSoft commentedComment #3
mero.S CreditAttribution: mero.S as a volunteer and at AnyforSoft for AnyforSoft commentedComment #4
novchuk.v CreditAttribution: novchuk.v commentedLooks good to me!
Comment #5
phenaproxima+1 for RTBC. These assertions look correct to me, and are more readable.
Comment #7
anonThanks for patch.