Skip to content

Commit 1b8cab3

Browse files
authored
Timestamp fields return int: fix field-types.php fixture (#915)
Timestamp fields return int
1 parent d76074f commit 1b8cab3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/src/Type/data/field-types.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@
5959
$changed_field = $node->get('field_changed')->first();
6060
assert($changed_field instanceof ChangedItem);
6161
assertType(ChangedItem::class, $changed_field);
62-
assertType('string', $changed_field->value);
62+
assertType('int', $changed_field->value);
6363

6464
// CreatedItem.
6565
$created_field = $node->get('field_created')->first();
6666
assert($created_field instanceof CreatedItem);
6767
assertType(CreatedItem::class, $created_field);
68-
assertType('string', $created_field->value);
68+
assertType('int', $created_field->value);
6969

7070
// DecimalItem.
7171
$decimal_field = $node->get('field_decimal')->first();
@@ -135,7 +135,7 @@
135135
$timestamp_field = $node->get('field_timestamp')->first();
136136
assert($timestamp_field instanceof TimestampItem);
137137
assertType(TimestampItem::class, $timestamp_field);
138-
assertType('string', $timestamp_field->value);
138+
assertType('int', $timestamp_field->value);
139139

140140
// UriItem.
141141
$uri_field = $node->get('field_uri')->first();

0 commit comments

Comments
 (0)