Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
senadir committed Mar 26, 2024
1 parent c5ed1bc commit c6ae01f
Showing 1 changed file with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,8 @@ public function test_placing_order_sanitize_text() {
),
'payment_method' => 'bacs',
'additional_fields' => array(
$id => 'value',
'plugin-namespace/job-function' => 'engineering',
$id => 'value',
),
)
);
Expand Down Expand Up @@ -1383,7 +1384,8 @@ public function test_placing_order_validate_text() {
),
'payment_method' => 'bacs',
'additional_fields' => array(
$id => 'invalid',
'plugin-namespace/job-function' => 'engineering',
$id => 'invalid',
),
)
);
Expand Down Expand Up @@ -1458,7 +1460,8 @@ function ( $value, $key ) use ( $id ) {
),
'payment_method' => 'bacs',
'additional_fields' => array(
$id => 'value',
'plugin-namespace/job-function' => 'engineering',
$id => 'value',
),
)
);
Expand Down Expand Up @@ -1533,7 +1536,8 @@ function ( \WP_Error $errors, $key, $value ) use ( $id ) {
),
'payment_method' => 'bacs',
'additional_fields' => array(
$id => 'invalid',
'plugin-namespace/job-function' => 'engineering',
$id => 'invalid',
),
)
);
Expand Down Expand Up @@ -1597,7 +1601,9 @@ public function test_place_order_required_address_field() {
'plugin-namespace/gov-id' => 'gov id',
),
'payment_method' => 'bacs',
'additional_fields' => array(),
'additional_fields' => array(
'plugin-namespace/job-function' => 'engineering',
),
)
);
$response = rest_get_server()->dispatch( $request );
Expand Down Expand Up @@ -1659,7 +1665,9 @@ public function test_place_order_required_contact_field() {
'plugin-namespace/gov-id' => 'gov id',
),
'payment_method' => 'bacs',
'additional_fields' => array(),
'additional_fields' => array(
'plugin-namespace/job-function' => 'engineering',
),
)
);
$response = rest_get_server()->dispatch( $request );
Expand Down

0 comments on commit c6ae01f

Please sign in to comment.