Skip to content
Snippets Groups Projects
Commit 9b94bb95 authored by Jess's avatar Jess
Browse files

Issue #2859013 by mpdonadio: DateTestBase inadvertently coupled to datetime_range module

(cherry picked from commit d87d382f)
parent 4bd7b246
No related branches found
No related tags found
Loading
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
use Drupal\Component\Utility\Unicode; use Drupal\Component\Utility\Unicode;
use Drupal\Core\Entity\Entity\EntityFormDisplay; use Drupal\Core\Entity\Entity\EntityFormDisplay;
use Drupal\Core\Entity\Entity\EntityViewDisplay; use Drupal\Core\Entity\Entity\EntityViewDisplay;
use Drupal\datetime_range\Plugin\Field\FieldType\DateRangeItem; use Drupal\datetime\Plugin\Field\FieldType\DateTimeItem;
use Drupal\entity_test\Entity\EntityTest; use Drupal\entity_test\Entity\EntityTest;
use Drupal\field\Entity\FieldConfig; use Drupal\field\Entity\FieldConfig;
use Drupal\field\Entity\FieldStorageConfig; use Drupal\field\Entity\FieldStorageConfig;
...@@ -114,7 +114,7 @@ protected function createField() { ...@@ -114,7 +114,7 @@ protected function createField() {
'field_name' => $field_name, 'field_name' => $field_name,
'entity_type' => 'entity_test', 'entity_type' => 'entity_test',
'type' => $type, 'type' => $type,
'settings' => ['datetime_type' => DateRangeItem::DATETIME_TYPE_DATE], 'settings' => ['datetime_type' => DateTimeItem::DATETIME_TYPE_DATE],
]); ]);
$this->fieldStorage->save(); $this->fieldStorage->save();
$this->field = FieldConfig::create([ $this->field = FieldConfig::create([
......
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