diff --git a/core/modules/datetime/lib/Drupal/datetime/Tests/DateTimeItemTest.php b/core/modules/datetime/lib/Drupal/datetime/Tests/DateTimeItemTest.php index ff10e7e..16731a2 100644 --- a/core/modules/datetime/lib/Drupal/datetime/Tests/DateTimeItemTest.php +++ b/core/modules/datetime/lib/Drupal/datetime/Tests/DateTimeItemTest.php @@ -114,8 +114,7 @@ public function testSetValueProperty() { // Test Date::setValue(). $entity = entity_create('entity_test', array()); $value = '2014-01-01T20:00:00Z'; - // WHY DOES THIS FAIL???? - // @todo Make this not fail. + $entity->get('field_datetime')->offsetGet(0)->get('value')->setValue($value); $entity->save(); // Load the entity and ensure the field was saved correctly.