Commit c80736f9 authored by bojanz's avatar bojanz

Rename the default order bundle from 'order' to 'default'.

parent f64af485
......@@ -13,8 +13,8 @@ dependencies:
- options
config_devel:
- views.view.commerce_orders
- commerce_order.commerce_order_type.order
- field.field.commerce_order.order.line_items
- core.entity_form_display.commerce_order.order.default
- commerce_order.commerce_order_type.default
- field.field.commerce_order.default.line_items
- core.entity_form_display.commerce_order.default.default
- field.storage.commerce_order.line_items
- core.entity_view_display.commerce_order.order.default
\ No newline at end of file
- core.entity_view_display.commerce_order.default.default
langcode: en
status: true
dependencies: { }
label: Order
id: order
description: 'A simple default order type.'
label: Default
id: default
description: ''
......@@ -2,13 +2,13 @@ langcode: en
status: true
dependencies:
config:
- commerce_order.commerce_order_type.order
- field.field.commerce_order.order.line_items
- commerce_order.commerce_order_type.default
- field.field.commerce_order.default.line_items
module:
- inline_entity_form
id: commerce_order.order.default
id: commerce_order.default.default
targetEntityType: commerce_order
bundle: order
bundle: default
mode: default
content:
created:
......
......@@ -2,14 +2,14 @@ langcode: en
status: true
dependencies:
config:
- commerce_order.commerce_order_type.order
- field.field.commerce_order.order.line_items
- commerce_order.commerce_order_type.default
- field.field.commerce_order.default.line_items
module:
- commerce_price
- user
id: commerce_order.order.default
id: commerce_order.default.default
targetEntityType: commerce_order
bundle: order
bundle: default
mode: default
content:
line_items:
......
......@@ -2,14 +2,14 @@ langcode: en
status: true
dependencies:
config:
- commerce_order.commerce_order_type.order
- commerce_order.commerce_order_type.default
- field.storage.commerce_order.line_items
module:
- entity_reference
id: commerce_order.order.line_items
id: commerce_order.default.line_items
field_name: line_items
entity_type: commerce_order
bundle: order
bundle: default
label: 'Line items'
description: 'An entity reference to line items.'
required: true
......
......@@ -47,7 +47,7 @@ class OrderAdminTest extends CommerceOrderTestBase {
public function testDeleteOrder() {
// Create a new order.
$order = $this->createEntity('commerce_order', array(
'type' => 'order',
'type' => 'default',
'mail' => $this->loggedInUser->getEmail(),
)
);
......
......@@ -25,7 +25,7 @@ class OrderTest extends CommerceOrderTestBase {
'type' => 'product_variation',
]);
$order = $this->createEntity('commerce_order', [
'type' => 'order',
'type' => 'default',
'mail' => $this->loggedInUser->getEmail(),
'line_items' => [$lineItem],
]);
......@@ -43,7 +43,7 @@ class OrderTest extends CommerceOrderTestBase {
'type' => 'product_variation',
]);
$order = $this->createEntity('commerce_order', [
'type' => 'order',
'type' => 'default',
'mail' => $this->loggedInUser->getEmail(),
'line_items' => [$lineItem],
]);
......
......@@ -21,10 +21,10 @@ class OrderTypeTest extends CommerceOrderTestBase {
*/
public function testDefaultOrderType() {
$orderTypes = OrderType::loadMultiple();
$this->assertTrue(isset($orderTypes['order']), 'Order Type Order is available');
$this->assertTrue(isset($orderTypes['default']), 'Order Type Order is available');
$orderType = OrderType::load('order');
$this->assertEqual($orderTypes['order'], $orderType, 'The correct Order Type is loaded');
$orderType = OrderType::load('default');
$this->assertEqual($orderTypes['default'], $orderType, 'The correct Order Type is loaded');
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment