Problem/Motivation
The extended class CommerceBrowserTestBase has updated their setUp() declaration, please see
Since EmailRegistrationLoginTest::setUp is not yet compatible with that, it's resulting in the following error:
PHP Fatal error: Declaration of Drupal\Tests\email_registration\Functional\Plugin\Commerce\CheckoutPane\EmailRegistrationLoginTest::setUp() must be compatible with Drupal\Tests\commerce\Functional\CommerceBrowserTestBase::setUp(): void in /app/web/modules/contrib/email_registration/tests/src/Functional/Plugin/Commerce/CheckoutPane/EmailRegistrationLoginTest.php on line 308
Steps to reproduce
phpunit web/modules/contrib/email_registration/tests/src/Functional/Plugin/Commerce/CheckoutPane/EmailRegistrationLoginTest.php
Proposed resolution
Make EmailRegistrationLoginTest::setUp compatible to CommerceBrowserTestBase::setUp
Remaining tasks
Create & attach the patch.
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Comments
Comment #2
rishi.kulshreshthaComment #3
rishi.kulshreshthaComment #4
siegristLooks good, thanks for the patch.
Comment #5
lkacenjaThis makes sense and seems great to me!
Comment #6
xurizaemonTests pass. This looks like the reason tests are not shown passing on the module page for 8.x-1.1.
- https://www.drupal.org/node/182476/qa
- https://dispatcher.drupalci.org/job/drupal_contrib/538409/console
In reviewing this and other module options, seeing that tests are green for the proposed version of the module is a useful assessment criteria.
Can the community do anything further to help this patch land?
Comment #8
andypostThank you fixed!
Great addition to D10 fixes #3297059: Automated Drupal 10 compatibility fixes