diff --git a/modules/tax/src/TaxTypeManager.php b/modules/tax/src/TaxTypeManager.php index 5a64dcb..141f473 100644 --- a/modules/tax/src/TaxTypeManager.php +++ b/modules/tax/src/TaxTypeManager.php @@ -36,8 +36,8 @@ class TaxTypeManager extends DefaultPluginManager { public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) { parent::__construct('Plugin/Commerce/TaxType', $namespaces, $module_handler, 'Drupal\commerce_tax\Plugin\Commerce\TaxType\TaxTypeInterface', 'Drupal\commerce_tax\Annotation\CommerceTaxType'); - $this->alterInfo('commerce_tax type_info'); - $this->setCacheBackend($cache_backend, 'commerce_tax type_plugins'); + $this->alterInfo('commerce_tax_type_info'); + $this->setCacheBackend($cache_backend, 'commerce_tax_type_plugins'); } /** diff --git a/modules/tax/tests/modules/commerce_tax_test/commerce_tax_test.info.yml b/modules/tax/tests/modules/commerce_tax_test/commerce_tax_test.info.yml new file mode 100644 index 0000000..4c6915f --- /dev/null +++ b/modules/tax/tests/modules/commerce_tax_test/commerce_tax_test.info.yml @@ -0,0 +1,7 @@ +name: Commerce Tax Test +type: module +description: Provides items for testing Commerce Tax. +package: Testing +core: 8.x +dependencies: + - commerce_tax diff --git a/modules/tax/tests/modules/commerce_tax_test/commerce_tax_test.module b/modules/tax/tests/modules/commerce_tax_test/commerce_tax_test.module new file mode 100644 index 0000000..f8daf15 --- /dev/null +++ b/modules/tax/tests/modules/commerce_tax_test/commerce_tax_test.module @@ -0,0 +1,17 @@ +getDefinitions(); + + $this->assertEquals('European Union VAT (altered)', $tax_type_definitions['european_union_vat']['label']); + } + +}