This article provides a patch for the Adobe Commerce 2.4.0 issue where integration tests are failing because the declaration of Dotdigitalgroup\Email\Test\Integration\Model\Sync\Importer\ImporterFailedTest::setUp()
is not compatible with PHPUnit 9 which is used for 2.4.0.
Steps to reproduce
Run 2.4.0 integration tests.
Expected result
Tests pass.
Actual result
PHP Fatal error: Declaration of Dotdigitalgroup\Email\Test\Integration\Model\Sync\Importer\ImporterFailedTest::setUp() must be compatible with PHPUnit\Framework\TestCase::setUp(): void in /var/www/vendor/dotmailer/dotmailer-magento2-extension/Test/Integration/Model/Sync/Importer/ImporterFailedTest.php on line 36
Apply the patch provided in this article.
The patch is attached to this article. To download it, scroll down to the end of the article and click the file name, or click the following link:
The patch was created for:
See How to apply a composer patch provided by Adobe in our support knowledge base for instructions.