You are here

public function CommerceCheckoutTestProcess::assertCheckoutPageAccessible in Commerce Core 7

2 calls to CommerceCheckoutTestProcess::assertCheckoutPageAccessible()
CommerceCheckoutTestProcess::testCommerceCheckoutAccessOrder in modules/checkout/tests/commerce_checkout.test
Test order completion page access.
CommerceCheckoutTestProcess::testCommerceCheckoutAccessPages in modules/checkout/tests/commerce_checkout.test
Test order completion page access.

File

modules/checkout/tests/commerce_checkout.test, line 461
Functional tests for the commerce checkout module.

Class

CommerceCheckoutTestProcess
Test checkout process.

Code

public function assertCheckoutPageAccessible($order, $page) {
  $path = $this
    ->getCommerceUrl('checkout') . '/' . $order->order_id . ($page ? '/' . $page : '');
  $this
    ->drupalGet($path);
  return $this
    ->assertEqual($this
    ->getUrl(), url($path, array(
    'absolute' => TRUE,
  )), t('@page checkout page is accessible.', array(
    '@page' => $page,
  )));
}