| @@ 158-161 (lines=4) @@ | ||
| 155 | 'setup_future_usage' => 'off_session', |
|
| 156 | 'payment_method_types' => array( 'card' ), |
|
| 157 | ); |
|
| 158 | foreach ( $expected_request_body_values as $key => $value ) { |
|
| 159 | $this->assertArrayHasKey( $key, $request_args['body'] ); |
|
| 160 | $this->assertSame( $value, $request_args['body'][ $key ] ); |
|
| 161 | } |
|
| 162 | ||
| 163 | // Assert: the request body contains these keys, without checking for their value. |
|
| 164 | $expected_request_body_keys = array( |
|
| @@ 148-151 (lines=4) @@ | ||
| 145 | 'confirmation_method' => 'automatic', |
|
| 146 | 'statement_descriptor' => $statement_descriptor, |
|
| 147 | ); |
|
| 148 | foreach ( $expected_request_body_values as $key => $value ) { |
|
| 149 | $this->assertArrayHasKey( $key, $request_args['body'] ); |
|
| 150 | $this->assertSame( $value, $request_args['body'][ $key ] ); |
|
| 151 | } |
|
| 152 | ||
| 153 | // Assert: the request body contains these keys, without checking for their value. |
|
| 154 | $expected_request_body_keys = array( |
|