public function CheckoutPaneTest::dataCheckoutPaneConfiguration in Commerce Checkout Order Fields 8
Data generator for test.
File
- tests/
src/ Kernel/ CheckoutPaneTest.php, line 176
Class
- CheckoutPaneTest
- Tests the checkout pane.
Namespace
Drupal\Tests\commerce_checkout_order_fields\KernelCode
public function dataCheckoutPaneConfiguration() {
(yield [
[],
'Test string',
[
'_disabled',
'<p>Wrapper element: Container</p><p>Display label: Order fields</p>',
'container',
],
]);
(yield [
[
'step' => 'order_information',
'wrapper_element' => 'fieldset',
],
'Test string',
[
'order_information',
'<p>Wrapper element: Fieldset</p><p>Display label: Order fields</p>',
'fieldset',
],
]);
(yield [
[
'step' => 'order_information',
'wrapper_element' => 'container',
],
'Test string',
[
'order_information',
'<p>Wrapper element: Container</p><p>Display label: Order fields</p>',
'container',
],
]);
(yield [
[
'step' => 'order_information',
'wrapper_element' => 'fieldset',
'display_label' => 'Custom fields',
],
'Test string',
[
'order_information',
'<p>Wrapper element: Fieldset</p><p>Display label: Custom fields</p>',
'fieldset',
],
]);
(yield [
[
'step' => 'order_information',
'wrapper_element' => 'fieldset',
],
null,
[
'order_information',
'<p>Wrapper element: Fieldset</p><p>Display label: Order fields</p>',
'fieldset',
],
]);
}