Commit a029bf53 authored by alexpott's avatar alexpott

Issue #2386325 by Gábor Hojtsy: Recurring config schema problems with datetime...

Issue #2386325 by Gábor Hojtsy: Recurring config schema problems with datetime and link field values in migrate tests
parent d4e03f23
......@@ -60,7 +60,7 @@ field.field_settings.link:
type: integer
label: 'Allowed link type'
field.link.value:
field.value.link:
type: mapping
label: 'Default value'
mapping:
......
......@@ -42,7 +42,8 @@ public function transform($value, MigrateExecutable $migrate_executable, Row $ro
case 'date_select':
if (!empty($widget_settings['default_value'])) {
$default['value'] = $widget_settings['default_value'];
$default['default_date_type'] = 'relative';
$default['default_date'] = $widget_settings['default_value'];
}
break;
......
......@@ -19,6 +19,15 @@
*/
class MigrateFieldInstanceTest extends MigrateDrupalTestBase {
/**
* Set to TRUE to strict check all configuration saved.
*
* @see \Drupal\Core\Config\Testing\ConfigSchemaChecker
*
* @var bool
*/
protected $strictConfigSchema = TRUE;
/**
* Modules to enable.
*
......@@ -144,7 +153,6 @@ public function testFieldInstanceSettings() {
$this->assertEqual($field->getSettings(), $expected);
$this->assertEqual('default link title', $entity->field_test_link->title, 'Field field_test_link default title is correct.');
$this->assertEqual('http://drupal.org', $entity->field_test_link->url, 'Field field_test_link default title is correct.');
}
/**
......
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