You are here

public function CommerceNodeCheckoutBaseTest::isPath in Commerce Node Checkout 7

Test if we're on a specific path.

As far as it seems, we only have $this->getUrl() which returns an absolute URL.

Parameters

$path: The path relative to Drupal.

Return value

TRUE if we're currently on that path, otherwise FALSE.

2 calls to CommerceNodeCheckoutBaseTest::isPath()
CommerceNodeCheckoutBaseTest::checkout in ./commerce_node_checkout.test
Start and complete the checkout process.
CommerceNodeCheckoutBaseTest::createPage in ./commerce_node_checkout.test
Create a basic page node.

File

./commerce_node_checkout.test, line 186
Provides tests for Commerce Node Checkout process.

Class

CommerceNodeCheckoutBaseTest
Base class for other test classes to extend.

Code

public function isPath($path) {
  return $this
    ->getUrl() == url($path, array(
    'absolute' => TRUE,
  ));
}