Address D11 depreciation in test using createUser()
requested to merge issue/commerce_authnet-3471323:3471323-acceptjspaymentmethodtest-fails-due into 8.x-1.x
Closes #3471323
In the tests run with Drupal 11 and Commerce 3 the test fails due to these lines in Kernel\AcceptJsPaymentMethodTest.php
$user = $this->createUser(['mail' => $this->randomString() . '@example.com']);
The function createUser() expects permissions to be the first argument
It looks like passing values as the first parameter is depreciated in D11 https://www.drupal.org/node/3330762