You are here

protected function ProductBehaviorSettingsFormTest::getCreateEntityUrl in Rabbit Hole 8

Same name and namespace in other branches
  1. 2.x modules/rh_commerce/tests/src/Functional/ProductBehaviorSettingsFormTest.php \Drupal\Tests\rh_commerce\Functional\ProductBehaviorSettingsFormTest::getCreateEntityUrl()

Returns URL of the "Create" entity page.

Return value

\Drupal\Core\Url URL object.

Overrides RabbitHoleBehaviorSettingsFormTestBase::getCreateEntityUrl

File

modules/rh_commerce/tests/src/Functional/ProductBehaviorSettingsFormTest.php, line 111

Class

ProductBehaviorSettingsFormTest
Test the functionality of the rabbit hole form additions to Commerce Product.

Namespace

Drupal\Tests\rh_commerce\Functional

Code

protected function getCreateEntityUrl() {
  return Url::fromRoute('entity.commerce_product.add_form', [
    'commerce_product_type' => $this->bundle
      ->id(),
  ]);
}