Skip to content

Commit b008b0d

Browse files
committed
test: add test for int as string
1 parent 5bad808 commit b008b0d

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

tests/system/Database/Live/UpdateTest.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,33 @@ public static function provideUpdateBatch(): iterable
238238
],
239239
],
240240
],
241+
'int as string' => [
242+
'type_varchar',
243+
[
244+
[
245+
'type_varchar' => 'test1', // Key
246+
'type_integer' => '9999999', // PHP string
247+
'type_bigint' => '2448114396435166946', // PHP string
248+
],
249+
[
250+
'type_varchar' => 'test2', // Key
251+
'type_integer' => '9999999', // PHP string
252+
'type_bigint' => '2448114396435166946', // PHP string
253+
],
254+
],
255+
[
256+
[
257+
'type_varchar' => 'test1',
258+
'type_integer' => 9_999_999,
259+
'type_bigint' => 2_448_114_396_435_166_946,
260+
],
261+
[
262+
'type_varchar' => 'test2',
263+
'type_integer' => 9_999_999,
264+
'type_bigint' => 2_448_114_396_435_166_946,
265+
],
266+
],
267+
],
241268
];
242269
}
243270

0 commit comments

Comments
 (0)