Skip to content
Snippets Groups Projects
Commit 81ef4852 authored by Vadym Abramchuk's avatar Vadym Abramchuk
Browse files

Issue #3404115: Support address_country field type

parent df58f96a
No related branches found
No related tags found
1 merge request!99Issue #3404115: Support address_country field type
Pipeline #94010 passed
......@@ -18,6 +18,7 @@ class SimpleFieldDeriver extends DeriverBase {
public function getDerivativeDefinitions($base_plugin_definition) {
$simpleFieldTypes = [
'address',
'address_country',
'boolean',
'block_field',
'color_field_type',
......
......@@ -73,6 +73,17 @@ class SimpleFieldProcessorTest extends FieldProcessorTestBase {
[0 => self::FULL_ADDRESS_FIELD_TEST_DATA],
['address'],
],
'address_country' => [
[
'type' => 'address_country',
'settings' => [
'available_countries' => [],
],
],
[0 => ['value' => 'UA']],
NULL,
['address'],
],
'boolean' => [
['type' => 'boolean'],
[0 => ['value' => TRUE]],
......@@ -326,6 +337,17 @@ class SimpleFieldProcessorTest extends FieldProcessorTestBase {
[0 => self::FULL_ADDRESS_FIELD_TEST_DATA],
['address'],
],
'address_country' => [
[
'type' => 'address_country',
'settings' => [
'available_countries' => [],
],
],
'UA',
[0 => ['value' => 'UA']],
['address'],
],
'boolean' => [
['type' => 'boolean'],
TRUE,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment