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
Example:
- $this->assertTrue(is_array($component));
+ $this->assertIsArray($component);
Comment | File | Size | Author |
---|---|---|---|
#2 | feeds-is-array-3154457.patch | 3.41 KB | novchuk.v |
Comments
Comment #2
novchuk.v CreditAttribution: novchuk.v commentedComment #3
jamesdixon CreditAttribution: jamesdixon at Dialed In Design commentedAh cool update to the tests thanks.
@megachriz think we should commit this?
Comment #5
MegaChriz CreditAttribution: MegaChriz as a volunteer commented@jamesdixon
Yes. Previously
assertIsArray()
wasn't available in Drupal 8.8. I even had a hand in it being backported eventually (see #3126787-33: [D8 only] Add forwards-compatibility shim for assertInternalType() replacements in phpunit 6&7).Committed #2. Thanks for contributing, @novchuk.v!
Comment #6
jamesdixon CreditAttribution: jamesdixon at Dialed In Design commentedAwesome thanks both!