Commit f11cb9ea authored by bojanz's avatar bojanz

Rename the default store type from 'Online store' to 'Default'.

parent e3d38ac3
......@@ -9,6 +9,6 @@ dependencies:
- commerce_price
- entity_reference
config_devel:
- commerce_store.commerce_store_type.online
- commerce_store.commerce_store_type.default
- commerce_store.settings
- views.view.commerce_stores
langcode: en
status: true
dependencies: { }
id: online
label: 'Online store'
id: default
label: 'Default'
description: null
......@@ -23,10 +23,10 @@ class StoreTypeTest extends StoreTestBase {
$this->drupalGet('admin/commerce/config/store-types');
$storeTypes = StoreType::loadMultiple();
$this->assertTrue(isset($storeTypes['online']), 'Store Type Web is available');
$this->assertTrue(isset($storeTypes['default']), 'The default store type is available');
$storeType = StoreType::load('online');
$this->assertEqual($storeTypes['online'], $storeType, 'The correct Store Type is loaded');
$storeType = StoreType::load('default');
$this->assertEqual($storeTypes['default'], $storeType, 'The correct store type is loaded');
}
/**
......@@ -94,7 +94,7 @@ class StoreTypeTest extends StoreTestBase {
$edit = [
'label' => $this->randomMachineName(8),
];
$this->drupalPostForm('admin/commerce/config/store-types/online/edit', $edit, 'Save');
$this->drupalPostForm('admin/commerce/config/store-types/default/edit', $edit, 'Save');
$storeTypeChanged = StoreType::load($storeType->id());
$this->assertEqual($storeType->label(), $storeTypeChanged->label(), 'The label of the store type has been changed.');
}
......
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