test: Temp database workaround for old PHP
This commit is contained in:
parent
c14fc2a721
commit
8795d72146
1 changed files with 8 additions and 1 deletions
|
@ -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']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue