Skip to content

Commit 3e30e09

Browse files
committed
Fixed unit tests
1 parent 4e0ef4a commit 3e30e09

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Unit/DataRefiners/DateTimeRefinerTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function will_refine_a_string_to_a_datetime_immutable(
4949
self::assertEquals(
5050
$expectedRefinedValue,
5151
$refinedValue instanceof DateTimeImmutable
52-
? $refinedValue->format(DateTimeInterface::ATOM)
52+
? $refinedValue->format('Y-m-d H:i')
5353
: $refinedValue
5454
);
5555
}
@@ -97,21 +97,21 @@ public function __construct(
9797
'propertyName' => 'date',
9898
'formats' => null,
9999
'value' => $now->format('Y-m-d'),
100-
'expectedRefinedValue' => $now->format(DateTimeInterface::ATOM)
100+
'expectedRefinedValue' => $now->format('Y-m-d H:i')
101101
],
102102
'Default formats Y-m-d H:i:s' => [
103103
'object' => $object,
104104
'propertyName' => 'date',
105105
'formats' => null,
106106
'value' => $now->format('Y-m-d H:i:s'),
107-
'expectedRefinedValue' => $now->format(DateTimeInterface::ATOM)
107+
'expectedRefinedValue' => $now->format('Y-m-d H:i')
108108
],
109109
'Default formats ATOM' => [
110110
'object' => $object,
111111
'propertyName' => 'date',
112112
'formats' => null,
113113
'value' => $now->format(DateTimeInterface::ATOM),
114-
'expectedRefinedValue' => $now->format(DateTimeInterface::ATOM)
114+
'expectedRefinedValue' => $now->format('Y-m-d H:i')
115115
],
116116
'Ignores null' => [
117117
'object' => $object,

0 commit comments

Comments
 (0)