Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / symfony / validator / Tests / Constraints / TimeValidatorTest.php
index 10ffe877087832f7efd70437336439e4b06e2b38..a22251d0ee3c50f5c0b12b96b43b219e172c59b1 100644 (file)
@@ -99,4 +99,11 @@ class TimeValidatorTest extends ConstraintValidatorTestCase
             array('00:00:60', Time::INVALID_TIME_ERROR),
         );
     }
+
+    public function testDateTimeImmutableIsValid()
+    {
+        $this->validator->validate(new \DateTimeImmutable(), new Time());
+
+        $this->assertNoViolation();
+    }
 }