Révision b858700c
Ajouté par Assos Assos il y a environ 10 ans
drupal7/sites/all/modules/commerce/modules/checkout/tests/commerce_checkout.test | ||
---|---|---|
175 | 175 |
$this->assertTitle(t('Review order') . ' | Drupal', t('When clicking in the \'Continue\' button, the title displayed corresponds with the current checkout phase: \'Review order\'')); |
176 | 176 |
|
177 | 177 |
// Finish checkout process |
178 |
$this->drupalPost(NULL, array('commerce_payment[payment_details][name]' => 'Example payment method'), t('Continue to next step'));
|
|
178 |
$this->drupalPost(NULL, array(), t('Continue to next step')); |
|
179 | 179 |
|
180 | 180 |
// Reload the order directly from db to update status. |
181 | 181 |
$order = commerce_order_load_multiple(array($this->order->order_id), array(), TRUE); |
... | ... | |
263 | 263 |
$this->assertNoRaw(t('The e-mail address %mail is not valid.', array('%mail' => $user_mail)), t('A warning message is not displayed when the e-mail address for the anonymous user is valid')); |
264 | 264 |
|
265 | 265 |
// Finish checkout process for good. |
266 |
$this->drupalPost(NULL, array('commerce_payment[payment_details][name]' => 'Example payment method'), t('Continue to next step'));
|
|
266 |
$this->drupalPost(NULL, array(), t('Continue to next step')); |
|
267 | 267 |
} |
268 | 268 |
|
269 | 269 |
/** |
... | ... | |
331 | 331 |
$this->assertEqual(reset($order)->status, 'checkout_review', t('Order status is \'Checkout Review\' in the review phase.')); |
332 | 332 |
|
333 | 333 |
// Finish checkout process |
334 |
$this->drupalPost(NULL, array('commerce_payment[payment_details][name]' => 'Example payment method'), t('Continue to next step'));
|
|
334 |
$this->drupalPost(NULL, array(), t('Continue to next step')); |
|
335 | 335 |
|
336 | 336 |
// Reload the order directly from db to check status. |
337 | 337 |
$order = commerce_order_load_multiple(array($this->order->order_id), array(), TRUE); |
... | ... | |
381 | 381 |
$this->drupalPost(NULL, $info, t('Continue to next step')); |
382 | 382 |
|
383 | 383 |
// Finish checkout process |
384 |
$this->drupalPost(NULL, array('commerce_payment[payment_details][name]' => 'Example payment method'), t('Continue to next step'));
|
|
384 |
$this->drupalPost(NULL, array(), t('Continue to next step')); |
|
385 | 385 |
|
386 | 386 |
// Reload the order directly from db to check its owner. |
387 | 387 |
$order = commerce_order_load_multiple(array($this->order->order_id), array(), TRUE); |
... | ... | |
427 | 427 |
$this->drupalPost(NULL, $info, t('Continue to next step')); |
428 | 428 |
|
429 | 429 |
// Finish checkout process |
430 |
$this->drupalPost(NULL, array('commerce_payment[payment_details][name]' => 'Example payment method'), t('Continue to next step'));
|
|
430 |
$this->drupalPost(NULL, array(), t('Continue to next step')); |
|
431 | 431 |
|
432 | 432 |
// Reload the order directly from db to check its owner. |
433 | 433 |
$order = commerce_order_load_multiple(array($this->order->order_id), array(), TRUE); |
... | ... | |
514 | 514 |
$this->assertCheckoutPageNotAccessible($this->order, 'complete'); |
515 | 515 |
|
516 | 516 |
// Fill in the payment method and continue the process. |
517 |
$this->drupalPost(NULL, array('commerce_payment[payment_details][name]' => 'Example payment method'), t('Continue to next step'));
|
|
517 |
$this->drupalPost(NULL, array(), t('Continue to next step')); |
|
518 | 518 |
|
519 | 519 |
// At this point, only the complete page should be accessible. |
520 | 520 |
$this->assertCheckoutPageNotAccessible($this->order, ''); |
Formats disponibles : Unified diff
Weekly update of contrib modules