You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/unit/Validator/StructureTest.php
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -281,7 +281,7 @@ public function testIntegerAsString(): void
281
281
'$updatedAt' => '2000-04-01T12:00:00.000+00:00'
282
282
])));
283
283
284
-
$this->assertEquals('Invalid document structure: Attribute "rating" has invalid type. Value must be a valid integer', $validator->getDescription());
284
+
$this->assertEquals('Invalid document structure: Attribute "rating" has invalid type. Value must be a valid signed 32-bit integer between -2,147,483,648 and 2,147,483,647', $validator->getDescription());
285
285
}
286
286
287
287
publicfunctiontestValidDocument(): void
@@ -459,7 +459,7 @@ public function testIntegerValidation(): void
459
459
'$updatedAt' => '2000-04-01T12:00:00.000+00:00'
460
460
])));
461
461
462
-
$this->assertEquals('Invalid document structure: Attribute "rating" has invalid type. Value must be a valid integer', $validator->getDescription());
462
+
$this->assertEquals('Invalid document structure: Attribute "rating" has invalid type. Value must be a valid signed 32-bit integer between -2,147,483,648 and 2,147,483,647', $validator->getDescription());
@@ -474,7 +474,7 @@ public function testIntegerValidation(): void
474
474
'$updatedAt' => '2000-04-01T12:00:00.000+00:00'
475
475
])));
476
476
477
-
$this->assertEquals('Invalid document structure: Attribute "rating" has invalid type. Value must be a valid integer', $validator->getDescription());
477
+
$this->assertEquals('Invalid document structure: Attribute "rating" has invalid type. Value must be a valid signed 32-bit integer between -2,147,483,648 and 2,147,483,647', $validator->getDescription());
@@ -540,7 +540,7 @@ public function testArrayOfIntegersValidation(): void
540
540
'$updatedAt' => '2000-04-01T12:00:00.000+00:00'
541
541
])));
542
542
543
-
$this->assertEquals('Invalid document structure: Attribute "reviews[\'0\']" has invalid type. Value must be a valid integer', $validator->getDescription());
543
+
$this->assertEquals('Invalid document structure: Attribute "reviews[\'0\']" has invalid type. Value must be a valid signed 32-bit integer between -2,147,483,648 and 2,147,483,647', $validator->getDescription());
544
544
}
545
545
546
546
publicfunctiontestFloatValidation(): void
@@ -662,7 +662,7 @@ public function testIntegerMaxRange(): void
662
662
'$updatedAt' => '2000-04-01T12:00:00.000+00:00'
663
663
])));
664
664
665
-
$this->assertEquals('Invalid document structure: Attribute "rating" has invalid type. Value must be a valid range between -2,147,483,647 and 2,147,483,647', $validator->getDescription());
665
+
$this->assertEquals('Invalid document structure: Attribute "rating" has invalid type. Value must be a valid signed 32-bit integer between -2,147,483,648 and 2,147,483,647', $validator->getDescription());
0 commit comments