1
0
Fork 0
mirror of synced 2024-09-28 23:41:23 +12:00

test: Temp database workaround for old PHP

This commit is contained in:
Binyamin Yawitz 2024-06-10 15:09:01 -04:00
parent c14fc2a721
commit 8795d72146
No known key found for this signature in database

View file

@ -2868,7 +2868,14 @@ trait DatabasesBase
$this->assertEquals('Invalid document structure: Attribute "floatRange" has invalid format. Value must be a valid range between 1 and 1', $badFloatRange['body']['message']);
$this->assertEquals('Invalid document structure: Attribute "probability" has invalid format. Value must be a valid range between 0 and 1', $badProbability['body']['message']);
$this->assertEquals('Invalid document structure: Attribute "upperBound" has invalid format. Value must be a valid range between -9,223,372,036,854,775,808 and 10', $tooHigh['body']['message']);
$this->assertEquals('Invalid document structure: Attribute "lowerBound" has invalid format. Value must be a valid range between 5 and 9,223,372,036,854,775,807', $tooLow['body']['message']);
$max = '9,223,372,036,854,775,807';
if (PHP_VERSION_ID < 80300) {
$max = '9,223,372,036,854,775,808';
}
$this->assertEquals('Invalid document structure: Attribute "lowerBound" has invalid format. Value must be a valid range between 5 and '.$max, $tooLow['body']['message']);
}
/**