- Issue created by @nicolasgraph
Folowing #3519229 📌 Fix coding standards Active , there is still an error which would need some attention.
------ --------------------------------------------------------------------------
Line tests/modules/commerce_payplug_tests/src/Services/PayPlugTestService.php
------ --------------------------------------------------------------------------
94 \Drupal calls should be avoided in classes, use dependency
injection instead
------ --------------------------------------------------------------------------
Injecting the HTTP client via the addArgument()
method in CommercePayplugTestsServiceProvider breaks tests with the following error.
1) Drupal\Tests\commerce_payplug\Functional\OffsitePayPlugPaymentGatewayTest::testCheckoutWithOffsiteRedirectPost
ArgumentCountError: Too few arguments to function Drupal\Core\Http\HandlerStackConfigurator::__construct(), 1 passed and exactly 2 expected
Active
5.0
Code