protected function RoleTest::populateCheckoutForm in Ubercart 8.4
Helper function to fill-in required fields on the checkout page.
Parameters
array $edit: The form-values array to which to add required fields.
Return value
array The values array ready to pass to the checkout page.
Overrides UbercartBrowserTestBase::populateCheckoutForm
File
- uc_role/
tests/ src/ Functional/ RoleTest.php, line 72
Class
- RoleTest
- Tests the role purchase functionality.
Namespace
Drupal\Tests\uc_role\FunctionalCode
protected function populateCheckoutForm(array $edit = []) {
$edit = parent::populateCheckoutForm($edit);
foreach (array_keys($edit) as $key) {
if (substr($key, 0, 15) == 'panes[delivery]') {
unset($edit[$key]);
}
}
return $edit;
}