Ran drupal-check against 15bb888. Here are the following PHPUnit Framework issues.

 ------ -----------------------------------------------------------------------------------
  Line   modules/payment/tests/src/Unit/CreditCardTest.php
 ------ -----------------------------------------------------------------------------------
  20     Call to deprecated method assertInternalType() of class PHPUnit\Framework\Assert:
         https://github.com/sebastianbergmann/phpunit/issues/3369
 ------ -----------------------------------------------------------------------------------

 ------ -----------------------------------------------------------------------------------
  Line   tests/src/Unit/UrlDataTest.php
 ------ -----------------------------------------------------------------------------------
  21     Call to deprecated method assertInternalType() of class PHPUnit\Framework\Assert:
         https://github.com/sebastianbergmann/phpunit/issues/3369
  24     Call to deprecated method assertInternalType() of class PHPUnit\Framework\Assert:
         https://github.com/sebastianbergmann/phpunit/issues/3369
 ------ -----------------------------------------------------------------------------------

Comments

FatGuyLaughing created an issue. See original summary.

Shreevasa Tantry’s picture

Status: Active » Needs review
StatusFileSize
new585 bytes

Please review the patch file.

czigor’s picture

StatusFileSize
new1.33 KB

We have 2 other assertInternalType() occurences. Let's use assertIsString() and assertIsArray() instead of assertTrue().

Status: Needs review » Needs work

The last submitted patch, 3: commerce-3118131-deprecation-3.patch, failed testing. View results

czigor’s picture

The phpunit version used on 8.8 has no assertIsString() and assertIsArray().

On 8.9 we have these methods. Tests fail for a completely different reason, not sure yet why exactly.

czigor’s picture

Discussed the 8.9 failures with timplunkett and longwave on #d9readiness slack and came to the conclusion that it's probably caused by an IEF theme function. (This has been confirmed with the help of the patch in #3120954: Add function name to the deprecation message about theme functions.)

czigor’s picture

vsujeetkumar’s picture

Status: Needs work » Needs review
StatusFileSize
new1.34 KB
new1.15 KB

Fix Test cases, Please review.

avpaderno’s picture

shashwat purav’s picture

Status: Needs review » Needs work

Patch failed to apply successfully to 8.x-2.x branch.

jsacksick’s picture

Status: Needs work » Closed (outdated)

Yes, this was already fixed as part of #3142252: assertInternalType() is deprecated and will be removed in PHPUnit 9, closing this.